Cystal Syntax question (1 Viewer)

wan2fly99

Registered User.
Local time
Today, 09:23
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
 

Mile-O

Back once again...
Local time
Today, 17:23
Joined
Dec 10, 2002
Messages
11,316
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
 

wan2fly99

Registered User.
Local time
Today, 09:23
Joined
Feb 7, 2005
Messages
53
Thanks for the response I believe that is correct.

I like to use basic syntax instead
 

Users who are viewing this thread

Top Bottom