Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Way to reference two wwSession tables
Message
 
À
15/04/2004 16:47:19
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00895267
Message ID:
00895336
Vues:
25
>>>>-- 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 :)
>
>thanks for your extremely detailed help...

No problemo.

If you need more help, just ask :)
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform