Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Max Length of Parameter String
Message
From
14/02/2008 14:44:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/02/2008 13:08:41
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01291970
Message ID:
01292764
Views:
29
>Nah, I was trying to use macro substitution - do &longstring - and it did not work. If I just wrote do x.y(params) it worked. Don't know why macro substituion did not work, but I have moved on. Thanks for the help.

"Don't know why macro substitution did not work..."

Because of embedded spaces. A name expression (parentheses) doesn't have this problem.

With macro, for example, the following:
lcFileName = "My File.dbf"
use &lcFileName
Gets expanded and interpreted as:
use My File.dbf
Which is an invalid command, because of the space.

With parentheses, lcFileName is treated as a variable - no problem whatsoever.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform