Screen Script Syntax Required
  • JeffG
    Posts:91
    Joined:Sat Aug 31, 2013 6:50 pm
    Location:Sydney
    Screen Script Syntax Required

    by JeffG » Thu Apr 16, 2015 11:49 pm

    Hi,

    on the Stock Screen, I run a series of screen script tests to make sure that required fields are completed before saving.

    Two of those tests are:
    REORDER = 0 and OVERTSTOCK = 1, because these are the default values.
    However, sometimes I might actually want REORDER = 0 or OVERSTOCK = 1.

    These values are checked in Mode == 3.

    I need a screen script, that will check these values for the first time that a stock item is added, but not check it again after that.

    I could do this by setting a value on the display screen and checking for it on subsequent saves, but I would rather do it in screen script and not have a variable displayed on the actual screen.

    Any assistance with the script syntax would be greatly appreciated.
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Mon Apr 20, 2015 9:44 am

    Use ScrMode() function to detect save/edit/add status of your record.

Who is online

Users browsing this forum: Bing [Bot] and 2 guests