>>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.