Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedures and classlib
Message
From
28/10/2004 14:24:08
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
28/10/2004 10:54:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00955296
Message ID:
00955427
Views:
16
A given piece of code should be self-reliant. So write yourself an object that checks if a given set procedure or classlib is already in use. Then you can make a piece of code, it will open up whatever classlibs it needs (if they are not already open), and this object can release the classlib or procedure if it opened them.

Then you can drop any piece of code in just about anywhere and it will work.

>Hello guyes,
>I have a question pertaining to application development. In your opinion is it better to set up your procedure files and classlib in your main application startup program or set them when needed.
>
>I.E.
>procedure Main()
> Set procedure to myprocs additive
> Set Classlib to myclass additive
>endproc
>
>or
>
>Procedure WhenNeeded()
> Set procedure to myprocs additive
> Set Classlib to myclass additive
> usethem()
> Release procedure myprocs
> Release Classlib myclass
>
>endproc
Previous
Reply
Map
View

Click here to load this message in the networking platform