General information
Category:
Forms & Form designer
Larry,
Thanks for your help. I just my last question is when you populate a combobox with a series of values (with either fields or alias), they automatically get assigned a sequential number? How to you match that number with the actual value in the first field. My lookup screen does not necesarrily know which sequantial number to use, but I assume there must be some lookup command to lookup a data element in the list?
Randy
>>Set the Value property to 1.
>
>OK - it populates, but it is populating with the FIRST value in the list instead of the one that the user selected from the lookup screen. Also, code in the interactive change event starts giving me problems - see the 4th line below. When I select an order from the combobox, the code works fine.
>
>THIS.ENABLED = .F.
>THISFORM.LOCKSCREEN = .T.
>IF !EMPTY(THIS.VALUE)
>THISFORM.curordnum = VAL(THIS.VALUE)
>
>Hi Randy,
>
>You will need some code that will determine exactly what value to place in the Value property from your external source (i.e. Lookup Screen).
>
>As for your Interactive Change Event code, pay attention to the data types you are using. The Value property wants a numeric data type value. Ensure that this is what it is getting. Otherwise, I don't know what the context of your program is and what you are trying to accomplish and so cannot give you more specific assistance. Just always pay attention to data types as this solves many problems by just keeping data types organized.
>
>
>Cheers,
>
>Larry Rix
>Platts
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only