Description
getServerVersion gets the version number of PowerServer.
proxyobject.of_execinterface ( "getServerVersion" )
Argument |
Description |
---|---|
proxyobject |
The instance of the proxy object generated for AppeonDotNetComponent. |
Return value of of_execinterface
Returns 0 if it succeeds and -1 if it fails.
Return value of getServerVersion
String. Returns the PowerServer version number. The return value is stored in the ReturnValue property of the proxy object.
Code example
appeondotnetcomponent ieon_dotnet long ll_return ieon_dotnet = create appeondotnetcomponent ieon_dotnet.ComponentType ='4' ieon_dotnet.TypeLib = '' ieon_dotnet.ClassDescript = '' ll_return = ieon_dotnet.of_execinterface ("getServerVersion") //result is returned to ieon_dotnet.returnvalue if ll_return = 0 then mle_1.text = string (ieon_dotnet.returnvalue) else messagebox ("Failed", ll_return) end if
io_ejb.Invokeretstring ( long objid, "getServerVersion", true, ref string retval )
Argument |
Description |
---|---|
io_ejb |
A reference of Appeon EJBobject. |
objid |
The handle to the component method. |
retval |
The return value of getServerVersion function: the version number of the specified PowerServer. This parameter must be declared, but need not to be assigned with values, as it is used to hold the return value. |
Return value of Invokeretstring
Returns 0 if it succeeds and -1 if it fails.
Return value of getServerVersion
String. Returns the version number of PowerServer. The return value is stored in the retval property of the Invokeretstring function.
Code example
Note invokeretstring function is called because the return value is a string.
//Connects with EJB and returns the instance handle il_bean string ls_return, ls_msg ls_return = ieon_ejb.invokeretstring (il_bean, "getServerVersion", true, ref ls_msg) //returns an empty string to ls_return if it succeeds, and returns the PowerServer version number to ls_msg