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
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024