Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Way to reference two wwSession tables
Message
 
To
15/04/2004 16:22:14
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00895267
Message ID:
00895333
Views:
23
>>-- cut --
>Have you dont this yourself personally?( am i a coward or what? )

I have my own subclass of wwProcess wich contain a dozen of methods that I use in almost all projects.

Dont be afraid, you do this all the time :)
The custom process class created by the project wizzard is a subclass of the wwProcess class you know...
You simply have to add one level of inheritance in the process.

Normally it is:
-> wwProcess
--> yourProcess

Now it is:
-> wwProcess
--> subProcess
---> yourProcess

BTW, The WCONNECT.H changes described earlier is to replace wwProcess with your own one.
If you only want to subclass wwProcess, you have to do it elsewhere.

The complete steps are like this:

You create a class prg:
DEFINE CLASS ProcessShared AS WWC_PROCESS

* add your custom props and methods

ENDDEFINE
I order to use your subclass you have do some changes in the 2 wizzard generated file (process and server)

Change this in the generated process code:
** DEFINE CLASS Processcode AS WWC_PROCESS
DEFINE CLASS Processcode AS ProcessShared
You have to add a set proc to in the server (yourclassMain) prg.
There is already a placeholder in the file.
*** Add any SET CLASSLIB or SET PROCEDURE code here

SET PROC TO ProcessShared.PRG ADDITIVE 
This is the way I do this and it work perfectly.
HTH :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform