Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NewObject()
Message
From
12/09/2002 13:50:51
 
 
To
12/09/2002 13:45:45
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00699856
Message ID:
00699858
Views:
23
>I create a class (Address) within a program file (AddressClass.prg) which is in my main VFP project under "Programs"
>
>I get an error from VFP when I create a new object with:
>
>oAddress=NEWOBJECT("AddressFunctions","addressclass.prg")
>
>"addressclass.prg not found"
>
>I also tried "SET PROCEDURE TO addressclass.prg" but resulted in the same error at the SET PROCEDURE statement.
>
>Im I forgetting something?

The name of the class ? ( a prg can hold more than one class definition )
                  ( object name,      object class, [ module ] )
oAddress=NEWOBJECT("AddressFunctions", 'Address', "addressclass.prg")
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform