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
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