Throws error what is that....?

for the calculation i use the formula qty* val;

@text(qty * val)

it’s working but first time it shows error like “Incorrect data type for operator or @Function: Number expected” what is wrong in this formula every field is number field and the result field is number & computed .

can anyone suggest…

Subject: throws error what is that…?

I’m guessing you are using 2 number fields (qty & val) and trying to display them in a text field or something. Try assigning the calculation to a variable then placing that in the @Text.

total:= qty*val;

@text(total);

If the field that displays the result is not a text field and is another number field, then you cannot use @Text, just qty*var would do.

Subject: RE: throws error what is that…?

Unless most programming languages, numbers do not receive default values.

Instead all variables all initialized empty (translated as an empty string hence the wrong type).

Give your qty and val fields default values and ensure that they precede the calculation field on the form.