| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Wed Apr 13, 2005 11:24 am Post subject: Help with @MSGBOX |
|
|
@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 |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Apr 13, 2005 12:53 pm Post subject: |
|
|
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Apr 13, 2005 1:07 pm Post subject: |
|
|
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 |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Wed Apr 13, 2005 1:51 pm Post subject: |
|
|
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...
http://www.dummies.com/WileyCDA/ |
|
| Back to top |
|
 |
|