LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Box read

Hello,

does anyone know how to read data from the Box text?

I am using the following code to read data from a file:
g_fileh = OpenFile ("GPSlocation.txt", VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);
read_number = ReadLine (g_fileh, line, 500);
SetCtrlVal (panelHandle, PANEL_BESTGPSPOS, line);
DecodeGPS (line);

read_number = ReadLine (g_fileh, line, 500);
SetCtrlVal (panelHandle, PANEL_INSPVA, line);
DecodeGPS (line);
CloseFile (g_fileh);

Which command instead of ReadLine should I use for read directly from texBox?

Thank you for your help.
0 Kudos
Message 1 of 4
(2,393 Views)

SetCtrlVal = Writing to a control (e.g. a Textbox)

GetCtrlVal = Reading from a control



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(2,378 Views)
I have already tried it, of course, but it does not work for me.
0 Kudos
Message 3 of 4
(2,375 Views)

In this case you'll need to add some more details describing your problem: which message is read from file and written to the textbox, what you are retrieving, why "it does not work for you", if any error message is received... all relevant informations that can describe the situation and help us to help you.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(2,365 Views)