Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is difference??
Message
 
 
To
01/12/2000 00:03:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00442533
Message ID:
00447885
Views:
11
>>I would like to know that what is the difference between single quotation Mark and double. please logically justify the both why we use single quote and double quote.

>I use Single QUotes cause its less keystrokes. If not possible (cause of an apostrophe) I have to use either " or [. One note, everyone says that quotes and brackets are the same, but thats not completley true.

>Run this code

>#DEFINE ccVar variable!
>?"hey, whats the name of that ccVar"
>?[hey, whats the name of that ccVar]

just to add to what Mike has already said, how about these:
? "hey, you have pressed the 'delete' button"
? [The user "Mike" has pressed the 'delete' button]

IOW, having these multiple ways of specifying quotes allows an easy way to use quotes w/o being interpreted as quotes!

This techique is often used when creating commands which will be expanded later.
for example:
cQuery = [select * from customer where state = "FL"]
&cQuery (not suggesting this type of macro use is good technique)

Hope this helps, Mohammed!
-michael

My brain hurt like a warehouse, it had no room to spare, I had to cram so many things to store everthing in there. - David Bowie
Previous
Reply
Map
View

Click here to load this message in the networking platform