ok, nevermind guys. i figured it out. crystal syntax is somewhat vb, and somewhat not vb... it's a mind bender to first define a shared var, then to refer to it you use the entire definition rather than just to call it by it's name...
i.e.
...in report header
whileprintingrecords;
shared...
i put the following in group header 2:
global currencyvar margin_total_var:=0
i am trying to create the following to put into group footer 2:
WhilePrintingRecords;
if {vr_08611.Past03} > 0 then
if a>b then
margin_total_var+=0
else
margin_total_var+=1
else...
thanks, that helped a little... i see that i was intending on incorrectly trying to return a value AND add to a running total... back to the drawing, er, keyboard.
can somebody give me a code snippet demonstrating a multiline if..then..else statement, or tell me what's wrong with the following:
if a>b then
{
statement 1
statement 2
}
else
{
statement 1
statement 2
}
i've programmed in vb before and normally to type in a multiline...
Guys, I'm embarrased b/c I'm at least an intermediate programmer in VB, C++ and other lang but i'm such a lowly novice @ crystal... Your help is greatly GREATLY appreciated.
I have a A/R report which requires a margin calculation per company, and a final total for margin at the end of the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.