| || |
Problem in capturing data using Combobox
I HAVE A COMBOBOX selection "State" WITH VALUE "NY" .
I USE THE FOLLOWING COMMAND
TCA15_MPI_Row.SetString ("ST"), VBComboBox("Name=cmbState").CaptureText
TO CAPTURE THE VALUE FROM COMBO "State" AND STORE IT IN ACTIVE DATA "TCA15_MPI" FOR LATER USE. THE VALUE IS STORED AS "NY6" IN ACTIVE DATA "TCA15_MPI" (i.e 6 IS APPENDED WITH THE VALUE IN THE COMBO)
is the problem with the tool or with my coding.
Re: Problem in capturing data using Combobox
The problem is that your capturing the dropdown arrow of your combobox, which is the 6. If you don't want to have to manipulate the string that is returned from CaptureText then you will need to use a different method such as GetItem or the Text property.
I don't think that it's your coding or the tool, just a generic problem with rendered text capture. It happens with other text capture tools as well. I believe that the ASCII representation of the drop down is 6. [img]/images/graemlins/laugh.gif[/img]