Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a VFP exe
Message
De
14/04/2000 19:26:54
 
 
À
13/04/2000 11:05:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00359172
Message ID:
00359924
Vues:
15
>Create a VFP COM server, and instance the server from VBScript - you can make method calls and use standard returns and parameter passing. You can't 'return' a value (other than an error level code) on program termination, and that's limited to integer values. THe COM server handles this, by publishing an interface that the VBScript can address.

Hmmm.



Ick.

Not at Ed's comment - he's right - but at the need for that methodology. I've spent time in the Unix environment, and the ability too throw around parameters and expect return codes in scripts is irreplaceable, IMHO. As it is, I've developed a way for any VFP .exe to accept Unix-style parameters (like tar or grep do), and it's part of my personal base classes.

It was very fun to create, and it fits right in my scripting model (I use Tcl/Tk, which is much more flexible than any comparable method that Microsoft has come up with - it takes the macro model of VFP and extend it to it's logical extreme).

David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform