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 


Error 4 on cancel folder dialog

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


Joined: 07 Aug 2004
Posts: 340

PostPosted: Thu Jul 06, 2017 6:38 pm    Post subject: Error 4 on cancel folder dialog Reply with quote

I use Vdsinout.dll for this and the code works but if i cancel on folder dialog it goes to error 4, don't know how to fix this?

Code:
:SingleErase0MODE
dialog set,texts0,File: @NAME(%a)"."@ext(%a)@CR()From: @PATH(%a)
DIALOG set,TEXTS1,Stage 1 - Random data fill
dialog set,prog,20
%1 = @io(ERASE,%a,FF00FF)
rem %2 = @io(ERASE,%F,00FF00)
dialog set,prog,40
rem %3 = @io(ERASE,%F,FF)
dialog set,prog,60
DIALOG set,TEXTS2,Stage 2 - Zero file creation
%4 = @io(create,%a)
dialog set,prog,80
DIALOG set,TEXTS3,Stage 3 - Erasing file
dialog set,prog,100
wait 0.6
dialog close
file delete,@item(3)
directory delete,@item(3)
if @next(3)
end
until @not(@item(3))
end
list close,3
end
dialog set,sb,Files elimination complete.
wait 0.6
dialog set,sb,
goto loop
Back to top
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Jul 06, 2017 8:30 pm    Post subject: Reply with quote

Have you checked your list to make sure the error is not valid? Another option is that if you sure your code is fine and it can continue after the error, you can just trap the error and "throw it away" to continue.

Set the option errortrap to a label right after the spot in the code where the error happens.

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Fri Jul 07, 2017 12:41 pm    Post subject: Reply with quote

Error is at line 22 for this code, with error name 4.

Yes i have error trap, one for debug and one for restart.

I guess i can't close list 3 if nothing is there.
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