I have four variables: glbUser1Avail, glbUser2Avail, glbUser3Avail and glbUser4Avail. I would like to set glbUserXAvail = True depending on the value of the openargs passsed to the form.
IOW:
If openargs = “1”, then
glbUser1Avail = True
End if
If openargs = “2” then
glbUser2Avail = True
End if
etc.
How do I construct the variable name so I don’t have to do this in four If statements?
Hope I’ve made my question clear. Thanks, in advance.