I try to use an decimal param for a service method.
Service Builder generate interfaces and this paramter is declared as Decimal.
But when this metod is invoked, decimal param is deserialized as TDecimal and in my method this param is received as “variant array of bytes” and can not be directly used as numerical values.
you can use these methods of uROBinaryHelpers.pas:
function DecimalToBCD(const aDecimal: TDecimal): TBcd;
function DecimalToString(const aDecimal: TDecimal; aDot: Char): string;
function DecimalToVariant(const aDecimal: TDecimal): Variant;
function DecimalVariantToString(const aVariant: Variant): string;
function VarByteArrayToDecimal(const aVariant: Variant; var aDecimal: TDecimal): Boolean;