Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler directives in ControlSource?
Message
From
02/02/2004 00:09:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00872778
Message ID:
00872863
Views:
15
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform