Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiler directives in ControlSource?
Message
De
02/02/2004 00:09:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00872778
Message ID:
00872863
Vues:
16
>>Assuming the .h file is available at edit/compile time, you can use the constants in code, but not in the PEM window. So just assign all the controlsources in .init code (of the controls, or of their parent object - form, perhaps) and you should be fine:
>>
>>
this.controlsource="thisform.s_data(ccn)"
>>
>>[now I see Sergey said the same thing... I was writing this message for about three hours, with about two hours break because of a fire in the apartment next door :) ]
>
>Dragan,
>
>There's a small difference between your's and my code. I intentionally used square brackets as string delimiters because they allow #DEFINE to be applied to a string literal. IOW, the string literal encloused in a single or double quotes isn't affected by #DEFINE's.

Wow, where'd you dig that out? Never occured to me it would be any different. Good to know.

The only thing I know that makes square brackets different is the beautifier, which doesn't touch strings in other types of delimiters, but does a lot to text inside square brackets. Learned that one the hard way.

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