>Hallo,
>what's the diffrence between this three String declartions for the VFP6/SP4 Compiler ? Is that a Bug or Feature ?
>
>#define Const _SCREEN
>
>? type("Const.name")='C' && Bringt .f.
>? type('Const.name')='C' && Bringt .f.
>? type([Const.name])='C' && Bringt .T. ... Häääääää
>
>-Ibrahim
The VFP compiler does not replace constants that are included in a string variable.
My SWAG as to why it works with [] is because the bracket can also be used to designate an array so the compiler ignores them and does the replace. The run time engine then decides how to handle it when it is reached.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao