I have a GLOBAL variable indicating whether a user can schedule a date using a particular machine. I want to check the value of the global variable (1: allow or 0: dont allow) for a particular machine and if that machine has been selected in the drop down list.
I am using code like this to test the whether the user has permission to use the machine (GLO:Machine is set as the machine is selected from the list box) ![]()
IF GLO:Laser_Qual = 0 AND GLO:MachineName = 'Laser' AND GLO:Admin = 0
MESSAGE('You are not qualified on the Laser' & '|' & 'and cannot schedule time on the machine.')
CLEAR(Sch:MachineName)
DO RefreshWindow
RETURN
END
I cannot seem to get the window to stay open and require the user to select a machine that they can use. The window just closes and saves the record.
Sorry for the basic questions … I am trying to relearn after 10 years.
Late addition to question: I was trying to do this on the ?OK Accepted Embed
thoughts?
