Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SBT Custom app &Command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00747423
Message ID:
00747428
Views:
10
>I am getting a stupid INVALID CUSTOM OPTION error right after wiat wind # 6
>
>wait wind str(5)
> lcCommand = 'do ftp_out with '+ str(lnuser)+', '+ str(lnType)
> wait wind str(6)
> &lcCommand
>
>How should I call this dynamic command?
>
>TIA

You're missing quotes around the value you're building up in the string:
lcCommand = 'do ftp_out with "'+ str(lnuser)+'", '+ str(lnType)
Your second parameter is probably OK as digits. If your first parameter is digits, too, I'm not sure what could be wrong. Mybe you need the quatation marks on BOTH parameters?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform