> If you use a dynamic array for VAR.NAMES, you will run into problems,
since

> the compiler converts LOTNO<3> to VAR.NAMES<2><3>, which is not valid

> syntax.



I agree with your point about using dimensioned arrays, as a matter of good
practice when used with included equate tables ... but the dynamic array
extraction syntax does work: LOTNO<1,3> (equivalent to ~ VAR.NAMES<2><1,3>)
is valid syntax for extraction, though not for assignment, and works under
UV. Insert function syntax works for assignment.



sub shortDemo

Equates:

equ E.GOSUB lit 'if E.LOTNO<1,3> then gosub',

   E.LOTNO to  VarNames<2>

Main:

   VarNames = 'A1':@AM:'B1':@AM:'C1'

   E.LOTNO = insert(E.LOTNO,1,3;'B3')

   E.GOSUB WorkOnGoodLotNoRecord:

return

WorkOnGoodLotNoRecord:

  crt VarNames

return

EndOfProgram: end



Stuart.














































































































































































































































































































































































































































































































































































































































































































































































































































































**********************************************************************
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have 
received this email in error please notify the Spotless IS Support Centre (61 3 
9269 7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**********************************************************************
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to