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 with @MSGBOX

 
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: Wed Apr 13, 2005 11:24 am    Post subject: Help with @MSGBOX Reply with quote

@ASK or @QUERY with WARN icon ?

%R = @MSGBOX(Do you wish to continue?,File Deletion,$031)
if @equal(%R,OK)
goto dragdrop1
if @equal(%R,Cancel)
goto loop
end
end

This don't work...
Back to top
View user's profile Send private message Send e-mail
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Apr 13, 2005 12:53 pm    Post subject: Reply with quote

I'm guessing your cancel button never works... You should end your first if statement before you start the second one... Or better yet, put the cancel equation in an elsif check:
Code:

if @equal(%R,OK)
  goto dragdrop1
elsif @equal(%R,Cancel)
  goto loop
end


Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Wed Apr 13, 2005 1:07 pm    Post subject: Reply with quote

If you actually read the documentation, you'll see that @MSGBOX returns a number according to the button that is pressed, not its caption.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Wed Apr 13, 2005 1:51 pm    Post subject: Reply with quote

Solution:

%R = @MSGBOX(Do you wish to continue?,File Deletion,$031)
if @equal(%R,1)
goto dragdrop1
elsif @equal(%R,2)
goto loop
end

Thanks to jules and Hooligan

What about a book about VDS you now like VDS for Dummies... Wink

http://www.dummies.com/WileyCDA/
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