Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create VS Define Classes
Message
From
10/03/1999 18:12:10
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00196090
Message ID:
00196137
Views:
24
Marty,

Thanks much!!! It worked fine.

I ended up using THISFORM.AddObject('oMyName','MyClass') in the Form.Load method. Is this the best way to handle it?

Another question ... what is the benefit to making these classes instead of just the ordinary old functions/procedures that we're all used to using? After all, I ended up putting them into a procedure library that's accessible from the entire project ... what's the diff? Enquiring minds want to know! < g >

Bonnie

>Bonnie,
> You're really close already. CLASS DEFINitions work just like procedures. If you want to lump them all together in one file, other than your MAIN program, just make sure to SET PROCEDURE TO xxxxxxx in your main program. After that, you're golden!
>
>PS. I use ALOT of program based DEFINES in my projects. If you want to pull them all into a VCX (so you can diagram them with the Visual Modeling Wizards) you can use TRUE, a set of utilities by Tom Rettig.
>
>HTH,
>Marty
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform