JavaLoadSilkPerformer Function

Action

Instantiates the Java object silk.performer.SilkPerformer and returns a handle on it. The Java object must be released by the JavaFreeObject function.

Include file

Java.bdh

Syntax

JavaLoadSilkPerformer(): number;

Return value

  • Handle on the Java object.

Example

var
  hPerf  : number;

dcltrans
  transaction TInit
  begin
      // Load and start the JVM.
      JavaCreateJavaVM();

      // instantiate the SilkPerformer java class
      hPerf := JavaLoadSilkPerformer();
  end TInit;

  transaction THello
  begin
    JavaSetString(hPerf, "Print with SilkPerformer object");
    JavaCallMethod(hPerf, "doHello");
  end THello;

  transaction TEnd
  begin
    JavaFreeObject(hPerf);
  end TEnd;