Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box and descriptive field label
Message
De
25/05/1999 06:43:44
 
 
À
24/05/1999 16:42:00
Richard Williams
State of Ohio, Dept. of Development
Columbus, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00222228
Message ID:
00222379
Vues:
22
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform