Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function call - a better way
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00238688
Message ID:
00238772
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform