UserFunction variants and C++
I am close to being able to call an external function from fast report. My FR function needs to be able to pass an integer back to the calling program and receive a string back - but I am having a problem in my calling program accessing the variant passed by UserFunction
Variant __fastcall TForm1::frxReport1UserFunction(const UnicodeString MethodName,
Variant &Params)
{
int i;
i = Params;
}
on execute i=Params gives an exception "could not convert variant of type (Array Variant) into type (integer)
I also tried Params[0] but get a compile error "variant::[](const int) is not accesible"
Any ideas?
Variant __fastcall TForm1::frxReport1UserFunction(const UnicodeString MethodName,
Variant &Params)
{
int i;
i = Params;
}
on execute i=Params gives an exception "could not convert variant of type (Array Variant) into type (integer)
I also tried Params[0] but get a compile error "variant::[](const int) is not accesible"
Any ideas?
Comments