cancel
Showing results for 
Search instead for 
Did you mean: 

Is it not allowed to declare 2 variables in one formula?

Former Member
0 Kudos

Hi,

Is this not allowed?

shared numbervar chk_p_vvl:=0

shared numbervar chk_p_depot:=0

Thanks a lot!

Accepted Solutions (1)

Accepted Solutions (1)

fritzfeltus
Product and Topic Expert
Product and Topic Expert
0 Kudos

Crystal syntax requires a semicolon at the end of each line, as the previous poster mentioned. If you are more familiar with VB, you could use Basic syntax (you can change this setting in the formula workshop or in "File > Options > Formula Editor").

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use any number of variables. However, you need to use the variables;

If you declare like this :

shared numbervar chk_p_vvl:=0

shared numbervar chk_p_depot:=0

you will get error as : the remaining text doesn't appears to be part of formula....and it will highlight second declaration sentence.

the following works:

shared numbervar chk_p_vvl:=0;

shared numbervar chk_p_depot:=0

(or)

shared numbervar chk_p_vvl:=0;

shared numbervar chk_p_depot:=0;

Read the formula guides... or follow crystal reports formula syntaxes help...