Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
='' in a form property
Message
De
18/01/2009 13:42:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
17/01/2009 13:17:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01374677
Message ID:
01374813
Vues:
10
>What does it mean when a developer has put this in the property of form instead of just quotes?
>
>=''
>
Expression in a property line preceded by an equal sign is eval()uated during the instantiation of the control (i.e. before its .init()) and is not refreshed later. So it's a once-in-a-lifetime, actually congenital, way to have a sort of dynamic property without really writing any code.

The bad part of it is that under some circumstances this expression may be calculated during development. If you have a

=TranslateToMongolian("This is a caption")

for a caption, and the routine TranslateToMongolian() is available but the mongolian.dbf isn't open, the routine will probably crash (though you can ignore the error - but having to ignore it every time you open the class for editing will become tedious).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform