| View previous topic :: View next topic |
| Author |
Message |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Wed Jun 04, 2003 11:34 pm Post subject: lists checking them twice then a error |
|
|
hey guys,.
what i'd like to know is how do you check if a list exists?
(not a LB)
thanks,
harry |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Jun 05, 2003 1:09 am Post subject: |
|
|
Only real way is to keep track of the lists you create with a variable.
| Code: |
%%List1 = No
IF @EQUAL(%%List1,No)
LIST CREATE,1
%%List1 = Yes
ELSE
LIST CLEAR,1
END
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Thu Jun 05, 2003 6:37 pm Post subject: |
|
|
Sheep,
thanks ....
i tried this remmed out bit but NOT...
so the weird deal is
i make the list
i save the list
i close the list
but the 2nd or 3rd time i come back i get a list err
can't create list
anybody got any idea why it chokes???
| Code: |
rem if @not(4)
list create,4
rem end
list clear,list2
%A = -1
repeat
%A = @succ(%A)
if @not(@equal(@net(pop3,mail,%A),@cr()))
list add,list2,@net(pop3,mail,%A)
list add,4,@net(pop3,mail,%A)
end
until @equal(@net(pop3,mail,%A),@cr())
list assign,L2,4
UG savefile,@winexists(~L2),A:\spam_mail.txt
list close,4
|
thanks mates
harry |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Jun 05, 2003 6:44 pm Post subject: |
|
|
I would try creating the list once in the beginning of your program, then just clearing it instead of closing and recreating. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
harry Contributor


Joined: 01 May 2003 Posts: 61
|
Posted: Fri Jun 06, 2003 12:13 am Post subject: |
|
|
Sheep,
thanks mate, i'll give it a try
harry |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|