Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    Howell, MI
    Posts
    22

    How to prevent a next or use a screen.jump

    I have a screen that contains a form. The user is allow to answer using a mask but it is posible for the user to delete the placeholder infomation before hitting next. If the form is empty I want the message.dialog to popup and tell the user that the form cannot be blank. I have this part working. The problem is you can only check the form "on next" therefore you have already left the screen befoe the user gets the message. What is the best way to prevent the user from going to next if it is not filled in?

    I tried:
    If form is blank then
    popup message
    screen.jump back to screen (it will not jump back)

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    I was about to say: That's easy¸ set _PreventNextPage = true; (default = false), but it seems I'm dreaming about that global variable.

    But you are not lost; try this:

    Code:
    if form is blank then 
    popup message
    else
    -- advance to the next screen
    Screen.Next();
    end

  3. #3
    Join Date
    Jan 2005
    Location
    Howell, MI
    Posts
    22
    Thanks, you know what it was. I had the screen.next () under the end so it allows move forward. Fixed.

  4. #4
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    939
    The computer is infuriating accurate. You have written the most brilliant code. One line is misplaced or one single character is wrong (LUA is case sensitive) and your script crashes.

    Some times I WANT the computer had artificial intelligence; that stupid box!

Similar Threads

  1. Screen.Jump
    By DAK in forum Setup Factory 7.0
    Replies: 0
    Last Post: 10-20-2004, 01:54 PM
  2. Using file size checks to prevent image swapping.
    By Corey in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 11-04-2003, 07:46 PM
  3. HOWTO: Prevent Setup Factory from Rebooting the System
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-23-2002, 03:31 PM
  4. Prevent running of installed program
    By cinder_blocks in forum Setup Factory 5.0
    Replies: 2
    Last Post: 04-12-2001, 12:36 PM
  5. Prevent Autoplay from loading more than once?
    By patrick in forum AutoPlay Menu Studio 3.0
    Replies: 4
    Last Post: 03-26-2001, 06:42 AM

Posting Permissions

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