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 


Help me.. urgent... Simple code

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


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Fri Feb 15, 2002 1:18 am    Post subject: Help me.. urgent... Simple code Reply with quote

LIST LOADFILE,HIDDEN,%%PathDir\DATA\RANDBAT.DAT
%%AA = -1
repeat
%%AA = @succ(%%AA)
LIST SEEK,HIDDEN,%%AA
LIST PUT,HIDDEN,0
until @equal(@index(HIDDEN),@pred(@count(HIDDEN)))
LIST SAVEFILE,HIDDEN,%%PathDir\DATA\RANDBAT.DAT

What the hell is wrong with this? Assumming that THERE is a "HIDDEN" list, there is a RANDBAT.DAT (and it's not empty)? This is making a list index out of range error
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Feb 15, 2002 2:09 am    Post subject: Reply with quote

You might want to try it like this:
Code:

LIST LOADFILE,HIDDEN,%%PathDir\Data\RANDBAT.DAT
%%AA = 0
repeat
LIST SEEK,HIDDEN,%%AA
LIST PUT,HIDDEN,0
%%AA = @succ(%%AA)
until @equal(%%AA,@count(HIDDEN))
LIST SAVEFILE,HIDDEN,%%PathDir\Data\RANDBAT.DAT

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
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