Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Square brackets
Message
From
28/04/2001 13:58:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00500093
Message ID:
00501258
Views:
27
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform