Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Warning: Square brackets as string delimiters
Message
De
11/12/2007 13:38:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Warning: Square brackets as string delimiters
Divers
Thread ID:
01274862
Message ID:
01274862
Vues:
40
Recently I have seen a lot of people are using square brackets as string delimiters. That made me think most of the community isn;t aware of this fact.
When you use square brackets and there is #define/#include in scope those strings might end with something very different than you expected. ie:
#define error 1

? 'An error has occurred'
? [An error has occurred]
Bottomline: Use single or double quotes as string delimiters unless you know what you're doing with square brackets.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform