NEWBIE: SetVariable with TOraclePackage

khang

Member²
Hello,

Do anyone have a full sample of using Setvariable with a TOraclePackage.
This Example doesn't work.

with oraPkg do begin
ParameterMode:=pmNamed;
SetVariable('V1',2);
SetVariable('V2',4);
i:=callIntegerfunction('fmult',parNone);
ShowMessage(IntToStr(i));
end;

Thanks
 
TOraclePackage.SetVariable can be used to set the value of public global package variables. To set parameter values, pass the values in the Parameters array when using CallProcedure or Call...Function. To obtain the values of output parameters after a call, use TOraclePackage.GetParameter.

------------------
Marco Kalter
Allround Automations
 
Originally posted by mkalter:
Thank you!

TOraclePackage.SetVariable can be used to set the value of public global package variables. To set parameter values, pass the values in the Parameters array when using CallProcedure or Call...Function. To obtain the values of output parameters after a call, use TOraclePackage.GetParameter.

 
Back
Top