>Numbers = CreateObject("Numbers") >Numbers.Convert.HexToDec("FFF") >SQL = CreateObject("MSSQL") >SQL.SQL2000.Server="Myserver" >SQL.SQL2005.Connection.Authenticate = "Local" >>
* In your main program PRIVATE goApp goApp = CREATEOBJECT("YourApplication") * Somewhere accessible DEFINE CLASS YourApplication AS Custom oNumbers = .null. oSQL = .null. * etc. PROCEDURE Init This.oNumbers = CREATEOBJECT("Numbers") This.oSQL = CreateObject("MSSQL") IF NOT IsNull(This.oSQL) This.oSQL.SQL2000.Server="Myserver" This.oSQL.SQL2005.Connection.Authenticate = "Local" * etc. ENDIF RETURN * Other operations needed throughout your application as methods ENDDEFINEThen, elsewhere in your application, you can call on these objects: