I'm wanting to create a loop in crystal that moves through 12 formulas, numbered 1 to 12. Is there any way that I can create a string in the loop and have it reference as a formula?
This is what I have:
numberVar Total := 0;
numberVar Counter := 0;
For Counter := 1 To 12 Step 1 Do (
If Not IsNull({#Month1}) Then
Total = Total + {Month1}
);
I'd be looking to do something like this:
numberVar Total := 0;
numberVar Counter := 0;
For Counter := 1 To 12 Step 1 Do (
If Not IsNull("Month" & Counter) Then
Total = Total + ("Month" & Counter)
);
I just don't know of any keyword that would convert text to a formula reference.
Stewart J. McAbney | Talk History
This is what I have:
numberVar Total := 0;
numberVar Counter := 0;
For Counter := 1 To 12 Step 1 Do (
If Not IsNull({#Month1}) Then
Total = Total + {Month1}
);
I'd be looking to do something like this:
numberVar Total := 0;
numberVar Counter := 0;
For Counter := 1 To 12 Step 1 Do (
If Not IsNull("Month" & Counter) Then
Total = Total + ("Month" & Counter)
);
I just don't know of any keyword that would convert text to a formula reference.
Stewart J. McAbney | Talk History