Cystal Syntax question

wan2fly99

Registered User.
Local time
Today, 04:49
Joined
Feb 7, 2005
Messages
53
Have this syntax

WhilePrintingRecords;
numberVar Discountable;


if (Datbase.Field1 = 1 ) then
Discountable := Discountable + (Datbase.Field2 *
Datbase.Field3)
else
Discountable := Discountable


Question:


Is := the same as an = syntax in Basic syntax?


Question:


Since field Discountable; is being defines in this detail line
display does it mean it will accumulate the valyues from each
database record as this line is printing


Thanks for any help new at this
 
As I know it, := is for assignation, and = is for comparison, in Crystal Syntax.

Therefore, when assigning a variable:

Code:
DateVar myDate := CurrentDate;

And, when doing a comparison:

Code:
If Month(MyDate) = 12 Then
 
Thanks for the response I believe that is correct.

I like to use basic syntax instead
 

Users who are viewing this thread

Back
Top Bottom