LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert int To String

I would like to convert int to string to display the result in a text box ?

 

Do you know how to do ? 

0 Kudos
Message 1 of 2
(3,756 Views)

#include <ansi_c.h>

 

int a_number;

char some_string [256];

 

 

    a_number = 12345;

    sprintf (some_string, "%d", a_number);

    SetCtrlVal (panelHandle, PANEL_TEXTBOX, some_string);

 

JR

0 Kudos
Message 2 of 2
(3,755 Views)