Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chaining commands
Message
From
30/01/2008 13:02:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01286728
Message ID:
01287189
Views:
34
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform