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
Afternoon, Some of our customers haven't changed their passwords for a while but they're not getting any password expiry message. If I copy their Standard ID into a new user on some test ...
17:22 25 Apr 2024
Andis Blicāns, Grasko
Hi, We have client using 8.5 2021-09-26 (build 85400383). The fields "Max Web Users" and "Max Sessions" ar blank. Server is closing itself almost every day. Message in hansa....
13:09 25 Apr 2024