PxPlus User Forum

Main Board => Knowledge Base / Training => Tips and Techniques => Topic started by: PxPlus on May 31, 2018, 10:03:22 AM

Title: How to tell if VARDROP_BOX input came from list or keyboard input
Post by: PxPlus on May 31, 2018, 10:03:22 AM
Sometimes it is desirable to know if the user input from a VARDROP_BOX (or VARLIST_BOX) came from user input or selection from the list.

You can determine whether it was user input versus selection by issuing a
   
    VARDROP_BOX READ nnn,X
 
X will return 0 if the user entered the data or be non-zero with the item number from the drop down list.

The 'CurrentItem property has been added to both the VARDROP_BOX and VARLIST_BOX controls with build 9162 of PxPlus which can be used to determine whether the input was from the list or not.