Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Max Length of Parameter String
Message
De
14/02/2008 14:44:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
14/02/2008 13:08:41
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01291970
Message ID:
01292764
Vues:
30
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform