On my ancient version of UD (5.2) I need to code it using a throw away;
JUNK = SORT(LIST)
Bruce

Bruce M Neylon
Health Care Management Group 
Phone: (301) 608-8633



"Edward Brown" <[email protected]> 
Sent by: [email protected]
02/03/2009 12:14 PM
Please respond to
[email protected]


To
<[email protected]>
cc

Subject
RE: [U2] unibasic's sort function






The SORT function (which I'm embarrassed to say I didn't think existed,
and I've been coding unibasic for the last 8 or 9 years!) sorts the data
passed into it; there isn't a return value. So

SORT(LIST)
CRT LIST

does work. Your original program sets LIST to 0 because LIST is set to
the return result of the sort statement - perhaps this should throw a
compiler error? Or perhaps there's an undocumented return code if the
data could not be sorted?


Edward
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to