PxPlus User Forum

Twitter Twitter Twitter

Author Topic: How to tell if VARDROP_BOX input came from list or keyboard input  (Read 1292 times)

PxPlus

  • Administrator
  • Diamond Member
  • *****
  • Posts: 1091
    • View Profile
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.