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
Piotr Wycichowski
Thanks Gatis, anyway it seems to be reported as bug instead of wish because now it depends on who created task for whom, am I right? /Piotr W....
14:39 15 May 2024
Aldevinas Katkus
Actually a new version of this bug is SL>>Reports>>Periodic customer statement "accumulates" amounts Not sure why it was duplicated, I clicked "submit"only once....
08:09 10 May 2024