dbTalk Databases Forums  

Stop script after Cancelling Action

comp.databases.filemaker comp.databases.filemaker


Discuss Stop script after Cancelling Action in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sylvain garnier
 
Posts: n/a

Default Stop script after Cancelling Action - 08-12-2003 , 10:03 AM






Hi, please apologize in case my question was already discussed, I'm pretty
new to FMPro.
I have a simple script with a unique action, [Delete Record]. When run, a
message box is displayed to ask for confirmation. When the Cancel Button is
clicked, an error message appears to ask wether the following steps of the
script are to be performed.
How should I drop this error message, so that the script simply stops,
considered I also want the confirmation dialog box to appear. (I tried the
"End Of Script" statement without result.)
TIA for any help
Sylvan



Reply With Quote
  #2  
Old   
Henk B
 
Posts: n/a

Default Re: Stop script after Cancelling Action - 08-12-2003 , 10:12 AM






sylvain garnier <sygar (AT) xiliane (DOT) com> wrote:

Quote:
Hi, please apologize in case my question was already discussed, I'm pretty
new to FMPro.
I have a simple script with a unique action, [Delete Record]. When run, a
message box is displayed to ask for confirmation. When the Cancel Button is
clicked, an error message appears to ask wether the following steps of the
script are to be performed.
How should I drop this error message, so that the script simply stops,
considered I also want the confirmation dialog box to appear. (I tried the
"End Of Script" statement without result.)
TIA for any help
Sylvan
Show Message [ Buttons: "Cancel", "OK", ""; Data: "Do you really..." ]
If [ Status(CurrentMessageChoice) = 1 ]
Exit Script
End If
Delete Record/Request [ No dialog ]
--
Henk B


Reply With Quote
  #3  
Old   
sylvain garnier
 
Posts: n/a

Default Re: Stop script after Cancelling Action - 08-12-2003 , 11:50 AM



Best thanks, Works fine..
Sylvan




"Henk B" <henk.invalid (AT) address (DOT) invalid> a écrit dans le message de
news:1fzl935.10rv1z3ccpfz2N%henk.invalid (AT) address (DOT) invalid...
Quote:
sylvain garnier <sygar (AT) xiliane (DOT) com> wrote:

Hi, please apologize in case my question was already discussed, I'm
pretty
new to FMPro.
I have a simple script with a unique action, [Delete Record]. When run,
a
message box is displayed to ask for confirmation. When the Cancel Button
is
clicked, an error message appears to ask wether the following steps of
the
script are to be performed.
How should I drop this error message, so that the script simply stops,
considered I also want the confirmation dialog box to appear. (I tried
the
"End Of Script" statement without result.)
TIA for any help
Sylvan

Show Message [ Buttons: "Cancel", "OK", ""; Data: "Do you really..." ]
If [ Status(CurrentMessageChoice) = 1 ]
Exit Script
End If
Delete Record/Request [ No dialog ]
--
Henk B



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.