|
GetProcessVariable |
|
package Dialog_Server;
import j4d.open.*;
class Examplet {
/* doGetProcessVariable read the var named "MyVar" from the server
*/
public void doGetProcessVariable(opProcess process) throws opException {
try{
opServerProcess executeOnProcess = new opServerProcess();
opVariableArray mArrayVar = new opVariableArray(1);
mArrayVar.mVariableArray[0] = new opVariable(VINTERPROCESS, "MyVar");
opProcess.GetProcessVariable(executeOnProcess, mArrayVar);
//assuming that we know that the var is Longinteger
int mResult = mArrayVar.mVariableArray[0].mData.mLongInteger;
}
catch (opException er){throw er;}
}
}
|
GetProcessVariable |
|