Problem with typecasting in BuildOps
Posted: Tue Oct 12, 2004 9:13 am
I was trying to generate a build op, which gives you the sum of the values in a decimal column. I could not save that value in a float variable.
float a;
a=indata1.col1;
It throws the following error during compilation.
"Illegal types associated with operator '+': 'float' and 'const class APT_Decimal'."
I even tried to cast this into float and it gives the same error. I also tried changing the datatype of that column to float. But it throws the same error.
Can anybody suggest a solution for this problem.
Arun
float a;
a=indata1.col1;
It throws the following error during compilation.
"Illegal types associated with operator '+': 'float' and 'const class APT_Decimal'."
I even tried to cast this into float and it gives the same error. I also tried changing the datatype of that column to float. But it throws the same error.
Can anybody suggest a solution for this problem.
Arun