package Dialog_Server;

import j4d.open.*;

class Examplet {

  /* doSetProcessVariable write the value 17 into the var named "MyVar" onto the server
  */
  public void doSetProcessVariable(opProcess process) throws opException {

    try{
      opServerProcess executeOnProcess = new opServerProcess();
      opVariableArray mArrayVar = new opVariableArray(1);
      mArrayVar.mVariableArray[0] = new opVariable(VINTERPROCESS, "MyVar");
      mArrayVar.mVariableArray[0].mData = new opData(LONGINTEGER, 17);
      process.SetProcessVariable(executeOnProcess, mArrayVar);
    }
    catch (opException er){throw er;}

  }

}