Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function call - a better way
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00238688
Message ID:
00238772
Vues:
18
>Well John, don't you enjoy the simplification of NewObject(). Sure we are into OOP's and everything has to be a method call. But there are situation where one can issue a generic function call without class overhead.
>I would like to forget issuing :
> set procedure to ..., set library to ..., etc.
>and just call my function and let FoxPro take care of all the dirty work.

Anita,

You can by-pass the SET PROCEDURE to business with NEWOBJECT(). Here I'm assuming that the class is contained in a prg file. Simply pass the class name as the first parameter and the prg file name (with extension) as the second. Or am I misunderstanding your question?
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform