hi, J:
I think you were using something like the following in Labtalk
%K=test_set_longtext()$;
In Labtalk help file, it say each String Register can hold up to 260 characters at most(%A-%Y, except for some reserved ones, like %Y, %G etc), yet there is an exception, the %Z, so you may change your code to
%Z=test_set_longtext()$; //%Z can hold longer text
or
strText$=test_set_longtext()$;
Hope it helps.