Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable delcaration

Status
Not open for further replies.

PjwJF

Technical User
Jan 11, 2012
11
CA
Hi All,

I want a variable to max out at 30. I need to create records 1 - 30 then add it to the end of one record to print 30 labels to one page all with the same data for that one record (30 identical labels). I have the two examples from the global variable crystal syntax in the report, it only creates record 1 and 2. I'm just not smart enough to figure this out. Someone pop the lid off please!

If the variable works properly it should create 30 details lines without even pulling any records from the ODBC. What do I need to do?

Syntax examples

formula a
Global NumberVar x;
x := 1;

Formula b
whileprintingRecords;
Global NumberVar x;
x := x + 1

Thanks,
Paul
 
You need to reset the variable in either the page header section or page footer section.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top