Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chaining commands
Message
De
30/01/2008 13:02:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01286728
Message ID:
01287189
Vues:
35
Thanks Michael. That's more involved than I wanted to get. I was hoping to build a command string in ASP and send it off to VFP for execution. There are other ways to work around it that are a little easier to deal with. I'll just accept the notion that it's not supported and leave it at that. Thanks
- DF

>Okay, not sure what you are doing or what you want as your result, but you can take a string/parameter and parse it, then execute each portion like so:
>
>
>LOCAL lcString, lnIndex, lnLines, lcCommand
>lcString = 'x=4|y=6|z=14'
>
>lnLines = ALINES(laCommands, lcString, 1, "|")
>FOR lnIndex = 1 TO lnLines
>	lcCommand = laCommands[lnIndex]
>	&lcCommand.
>ENDFOR
>
>
>-mike
>
>>This is probably a dumb question but . . . in VFP is there a way to chain multiple commands on a single line? Something like:
>>
>>x=4|y=6|x=14
>>
>>I've never seen this form but several other languages allow it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform