FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 AfterInit  Event

 

 

Occurs once the server has been initialized.

 PROCEDURE Server.AfterInit

 

Remarks

 

In order to use custom code for server level events, the server object must be created from a custom fdoServer subclass. You can implement custom code on the corresponding subclass methods.

 

Example

oServer=CREATEOBJECT("MyServer")

 

...

 

DEFINE CLASS MyServer AS fdoServer OF fdo

    MyServerAddedProperty=0

    ...

    PROCEDURE AfterInit

        THIS.MyServerAddedProperty=1

        THIS.DoSomethingAfterServerStartUp()

        ? "Server initialized..."

    ENDPROC

     ...

ENDDEFINE

 

 

 

See Also

Server.NewSession method | Server.OnInit event | Server.OnLoad event | Server.OnDestroy event

Applies to: Server object

Send feedback on this topic to RunAhead Technologies

For Technical support and product issues please contact us at support@foxdataobjects.com or visit http://www.foxdataobjects.com

Copyright (c) 2000-2005 RunAhead Technologies