Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Square brackets
Message
De
28/04/2001 13:58:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00500093
Message ID:
00501258
Vues:
25
>>Hi all,
>>
>>A while back, when getting into WebConnect, I found liberal use of square brackets where I had expected to see quotes (single or double). I knew these substituted nicely for parentheses in array coding but was totally surprised by this other usage.
>
>Hi Jim,
>
>I heard Tony Feltman mention that this approach is particularly useful when you're building html strings (where double quotes are used all the time for storing values) from vfp. Makes for more readable code.

Yup, I thought about that yesterday when I read this thread. Basically, it gets complicated when you include some javascript syntax in what you have to return. I faced some situations where I had the quote, the double quote and another delimiter in the string at the same time which was making it difficult to find the proper syntax. Someone helped me here by sending me the proper syntax in javascript to include delimiter character in a string which was making it easy for VFP to send a standard syntax.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform