|
Yes, the 2 byte area is implicitly defined.
If I have a variable length field defined to the program, and it's yet to be used, then
dsply %len(VarLen); // should display 0
eval VarLen='Test';
dsply %len(VarLen); // should display 4
/end-free
move 'Hi There' VarLen
/free
dsply VarLen; // should display 'Hi T'
/end-free
move 'X' VarLen
/free
dsply VarLen; // shold display 'Xi T'
Hey, if you want MOVE to do all of it's tricks with Move and MoveL and have it truncate, etc; then to allow this then for the compiler writers to do this they have to assume you know what you are doing with the move.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.