Reply to Thread

Post a reply to the thread: How Do I Loop A Dialog

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 01-22-2023, 05:53 PM
    lmodern1878

    How Do I Loop A Dialog

    I am curious as to the following:

    How do I loop a dialog? As to say I've got a text box dialog that is supposed to act as a "User Check" meaning that they will read through a bunch of screens that have very important information about my project then get stopped by the user check which basically says "Please enter the following in the box below: I UNDERSTAND THE LIMITATIONS OF THIS INSTALLER." If the user enters that exact phrase regardless of case so long as it looks like "I UNDERSTAND THE LIMITATIONS OF THIS INSTALLER" then proceed, else display an error and go back to the user check to try again. Give the user 3 chances at the check and if they fail, 3 times then display an error and quit.

    I think I've got it but just want to check that I'm doing so right:
    1. Define the Edit Data dialog and store edit 1 in some variable
    2. if %_SB_DIALOGNEXTID% = $USER-CHECK$ then
    >>>> Set a variable FailCount = 0
    3. loop 3 times if some variable does not equal (ignore case) "blah blah blah" then display message, increment FailCount by 1 and cycle loop
    3. ElseIf FailCount is 3 or greater display error then exist setup

    Again I think I might have it in the wrong order but I hope I have the concept right and just need a bit of guidance

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •