Hi Barry,
You mean, like this?
*BBBecause it's easy to remember and type
PERFORM "SELECT CM SAMPLE 5"
STOP
:BBB
5 records selected to list 0.
>
Or did you want to actually write to the file that lists are saved in, and
then get the list before ending the program?
In Unidata that file is called SAVEDLISTS. If you wanted to create a list
named AEE you would:
WRITE LIST.REC ON SAVEDLISTS, "AEE000"
appending three zeros to the end of what you wanted the name to be.
To create the list, you would:
LIST.REC = ''
LOOP
READNEXT ID ELSE EXIT
{{do something to create AN.ID}}
LIST.REC<-1> = AN.ID
REPEAT
WRITE LIST.REC ON SAVEDLISTS, "AEE000"
STOP
hth, Allen
btw, you should always mention whether you're using Unidata, or Universe as
there are several differences.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik
Sent: Monday, October 25, 2004 16:44
To: U2-users (E-mail)
Subject: [U2] [UV] Exit BASIC program with SELECT list?
Is it possible to create a SELECT list inside a BASIC program, then make
that list be the active SELECT list 0 after the program terminates?
In other words, I want to build lists in a program, and when I return to TCL
I want to see the >> prompt and have an active select list.
Any ideas?
Barry
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/