Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is difference??
Message
 
 
À
01/12/2000 00:03:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00442533
Message ID:
00447885
Vues:
8
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform