Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No PARAMETER statement is found
Message
De
05/05/1999 17:40:00
 
 
À
05/05/1999 17:30:41
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00214951
Message ID:
00215536
Vues:
44
>>That wonder, until you need to specify a path on the command line that contains embedded spaces or your sep character (especially the tilde, which is often used in the short name derived from a long file name.) Quote encapsulation works there unambiguously.
>>
>
>True... but, we are saying the same thing. Pass ONE parameter. Isn't that the result of doing...
>
>"Mary Had A Little Lamb"
>
>Or does that come through as 5 parameters?

No, you still have to parse it; quote encapsulation passes everything within quotes as a single string. If I want multiple parameters, I'd pick something else to use as a parse character that I know isn't in use, and quote-encapsulate the whole mess, something like:

"Mary hard a little lamb, a little pork, a little jam..."

using comma as the sep character in this example, it could be parsed into 3 strings. I'd probably pick something other than a legal character for a file name to make my life easier; the vertical bar, since it serves as a pipe character in a command line and can't be part of a file name, would be a natural choice.

Once you have the string in VFP as a string, there are any number of ways to handle parsing, including the FOXTOOLS word-related functions.

Quote encapsulation gets around the problem that many of the common characters that are treated as separator characters by the command line parser are needed inside parameters frequently.
>
>BOb
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform