Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
='' in a form property
Message
De
19/01/2009 10:09:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/01/2009 03:42:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01374677
Message ID:
01375078
Vues:
23
>>>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).
>
>Hi,
>
>on VFP 7 or 8 the team remove UDF evaluation on class's property.
>Also property_Access is not evaluated.
>Only VFP native functions work.

Still happens to me if TranslateToMongolian() is found in Set("Procedure")... though not too often, I have an IDE setup routine that sets paths and cleans various SETs that I run almost automatically whenever coming back from a trial run, and it closes the procedure files as well.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform