06-18-2019 06:29 AM
Hi ,
I' d like to save the content of a textbox line by line in a .text file as a first step ,... and then to re-use that file !
Could someone helps me !
06-18-2019 07:47 AM
This can be easily solved: GetnumTextBoxLines returns the number of lines in the Textbox control, then you can use GetTextboxLine to retrieve the control contents line by line.
If you want to know the functions you can use with a particular control, you can right-click on the control and select Control Help in the context menu: in the control help page you'll find the list of functions you can use with such a control.
06-18-2019 07:57 AM
thank you for replying!
this is already done ! my problem is how get these lines to external .txt file as a first step and as a seconde step i want to explore an external text file and get information from it .
06-18-2019 09:48 AM
So if one task is already solved why you put it into your question??!?!
Writing to a file can as simple or as complicated as you want: in this thread you can find a conceptual framework that can give you some idea to work on (and I have found it with a simple search in the forum board )::
how to read columns from text file and save in another text file
It's not the place here where to explain file I/O in detail: start designing our solution, look either into ANSI C >> Input Output library or Formatting and I/O Library and search for examples in CVI (Help >> Find examples...) and/or in this board, you'll find tons of examples and discussions to consider; come back here when you have some doubt a bit more detailed than "How to write to a file"