Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box and descriptive field label
Message
From
25/05/1999 06:43:44
 
 
To
24/05/1999 16:42:00
Richard Williams
State of Ohio, Dept. of Development
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00222228
Message ID:
00222379
Views:
19
Hi Richard ----

Regarding the following code:

>thisform.lblMYLabelCaption=cCursor.digitdesc
>thisform.lblYourLabel.Refresh()

This would never work. Why? Labels don't support the Refresh event. Try putting the Label into an invisible container and refreshing the container, ie:

>Thread 221136 requested info for a combobox containing a two digit field to be displayed along with a changing label. This was to be accomplished by making the rowsource of the Cbo a cursor, view or table. I used a table. Then to set the combobox rowsourcetype property to 6-fields, and the rowsource =cCursor.digit,digitdesc. Then in the valid event of the combobox place the following code:
>
>thisform.lblMYLabelCaption=cCursor.digitdesc
>thisform.lblYourLabel.Refresh()
>
>nothing happened
>
>I also inserted this code into the the interactivechage event,
>but still nothing
>
>any ideas how this could be accomplished or why mine isn't working?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform