ImportIntoText() equivalent for Area
Aldevinas Katkus
1-17-22
Operating system: macOS
I cannot find an equivalent for ImportIntoText() for areas. Is there one?

I am importing a tab separated text file and one of the columns may be longer than 255 chars. I need to import it into NotepadVc.
Everything works now, but I figured out I need to use AddFileToArea and then process that area if I need to process a file in a backgound task created with NewPeriodicTask2().
David Delač
1-26-22
Hi Aldevinas,

Try using AddAreaToTextField(area,RecordVc);

Let me know if this helped you.

Best Regards,

David D.
Aldevinas Katkus
1-27-22
I figured out it myself, and yes, you are right:

tstr = GetTabTextFromArea(LineNr,ColNr,a);// a string longer than 255 chars
ColNr = ColNr + 1;
SetAreaZeroSize(area_t);

AddTextToArea(trim(tstr),area_t);
AddAreaToTextField(area_t,NoterDN);//all chars are copied to Noter
//AddToText(tstr,NoterDN); only first 255 chars are copied
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Hello, Kindly please report the bug so that we can further investigate and resolve it. Thank you. Best regards, Benjamin...
11:31 3 May 2024
Hi, No changes should have been made that would increase client's HDB file. Please try to delete HANSA.HDB from client folder and reconnect to server and check if it will grow to 30MB again. ...
10:14 30 Apr 2024