forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


lists checking them twice then a error

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
harry
Contributor
Contributor


Joined: 01 May 2003
Posts: 61

PostPosted: Wed Jun 04, 2003 11:34 pm    Post subject: lists checking them twice then a error Reply with quote

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
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jun 05, 2003 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
harry
Contributor
Contributor


Joined: 01 May 2003
Posts: 61

PostPosted: Thu Jun 05, 2003 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Jun 05, 2003 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
harry
Contributor
Contributor


Joined: 01 May 2003
Posts: 61

PostPosted: Fri Jun 06, 2003 12:13 am    Post subject: Reply with quote

Sheep,
thanks mate, i'll give it a try
harry
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group