Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro in form label
Message
De
06/07/2009 09:13:40
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01410246
Message ID:
01410252
Vues:
38
Moises

hm the question allows multiple answers
1. Answer (You try to alter the visual part of the label)
?vartype(thisform.label),vartype(myLB)
You can not add value (numeric) 8 to the object

you need to enter the CAPTION property

like
thisform.label.CAPTION = myLB
but caption only likes characters so you need to transform the numeric var
thisform.label.CAPTION = TRANSFORM(myLB)
2. Answer

You like to add a property to the object
thisform.label.ADDPROPERY('myLB',myLB)
3. Answer

You like to alter obujects name
thisform.label.name = thisform.label.name+TRANSFORM(myLB)
?thisform.label.caption && will fail no more object of this name
HTH
Agnes

>How do I add a variable to a label of the form
>
>I have:
>
>thisform.label1
>
>I would like to assign a variable instead of the number
>
>Example:
>
>store 8 to myLB
>
>thisform.label+myLB
>
>Looks like it does not accept &
>
>Any help will be welcome
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform