Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show + or - with numeric textbox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00336230
Message ID:
00336788
Vues:
20
Thanks. I am still using 5.0.

So could this be done using the Assign method? When the value in one control changes, the code sparks and changes the value of another field.

Joe



>>I don't think these's any easy way.
>>
>>What if you had two controls. One that was invisible (same fore/background color as the form). This one has a ControlSource of your data. When it changes (ProgrammaticChange), initiate a method that re-displays the other TextBox that is a character field showing iif(X>0, "+" + str(X), str(X)). You get the idea.
>>
>>While on this topic, is there some event in VFP that fires when a property changes? I forget what this is called, but it was new in 5.0 or 6.0. I think it had to do with a method being fired when a property changes. I think it was new in 6.0, but it is a distant memory at this point...
>>
>>Joe
>>
>
>You mean Assign method.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform