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