Page 1 of 1

Screen Script Syntax Required

Posted: Thu Apr 16, 2015 11:49 pm
by JeffG
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.

Posted: Mon Apr 20, 2015 9:44 am
by COBS Tech Support
Use ScrMode() function to detect save/edit/add status of your record.