harding1031
Programmer
1. if Left({IMITREP.SCEOA},3) = 'REC'
2. then total_capacity := recycle_capacity * 24
3. calculated_rate := holdweight1/total_capacity
4. else if Left({IMITREP.SCEOA},2) = 'LO'
then total_capacity := recycle_capacity * 24
else if Left({IMITREP.SCEOA},3) = 'BND'
then total_capacity := blend_capacity * 24;
Crystal 9.0
I am getting an error when I have more than two statements after "then", are we only allowed one statement in the "then" clause? The statement in line 3 is valid when it is not part of the "if" statement and the "if" statement works fine when I remove line 3.. Any ideas. TIA.
2. then total_capacity := recycle_capacity * 24
3. calculated_rate := holdweight1/total_capacity
4. else if Left({IMITREP.SCEOA},2) = 'LO'
then total_capacity := recycle_capacity * 24
else if Left({IMITREP.SCEOA},3) = 'BND'
then total_capacity := blend_capacity * 24;
Crystal 9.0
I am getting an error when I have more than two statements after "then", are we only allowed one statement in the "then" clause? The statement in line 3 is valid when it is not part of the "if" statement and the "if" statement works fine when I remove line 3.. Any ideas. TIA.