Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strings vs Compiler!
Message
 
 
To
15/12/2000 07:22:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00453845
Message ID:
00453877
Views:
29
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform