Importing a string longer than 255 chars
Aldevinas Katkus
9-27-21
Operating system: macOS
Is there ss there a way to import a long string (~400 chars) from a TAB separated text file?
This long string is a column in the text file.

BTW: It would be very nice to have ASCIIZ strings in hal, not limited to 255 chars.
Paul Timms
9-30-21
I believe this is difficult, if not impossible. The problem, as you've probably found, is that all the C functions you need (GetTabTextFromArea etc.) only support 255 characters.
Aldevinas Katkus
10-15-21
Actually it seems I can import one column having more than 255 chars like this.

global
procedure ImportTestIn(record RcVc RepSpec)
begin
string 255 tstr;
record NotepadVc Noter;

tstr=ImportField;
tstr=ImportField;
if(ImportIntoText(Noter)) then begin end;
tstr=ImportField;
while (NextImportLine(false)) begin

end;
StopAlert("tstr=" & tstr);
OpenWindow("NotepadDClass",1,0,"","",Noter);
end;
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