Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SBT Custom app &Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00747423
Message ID:
00747428
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform