Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic User Input to search and report
Message
From
24/04/2000 11:05:45
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00355661
Message ID:
00362758
Views:
13
>Can you explain to me the correct usage of [ and ] ? How does it differ from using quotes? It's called quote encapsulation right?

"literal" is the same as [literal]

>What is the literal here you refer to? I looked up literals in SQL statements in VFP Help and it explained defining literals with the ESCAPE clause but I see none here.
>Thanks
>
>>>SELECT * FROM client ;
>>>WHERE group_code = [&cGroupCode] ;
>>>INTO CURSOR Mycursor
>>

[&cGroupCode] forms the quote-encapsulated literal; the result of macro-expansion is encapsulated in quotes - the [] pair is a quote pair just like ""


>>**I've never seen a literal with macro-expansion and quote encapsulation. Is this all really necessary?
>>
>
>>The definition of a literal doesn't go away. You convert the memvar reference >which does go away to a literal by this
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform