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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resetting Global String Variable

Status
Not open for further replies.

adamwill

Programmer
Jun 19, 2003
18
GB
A colleague is trying to create a report with a field to concatenate a string. In the group header there is a global stringvar ref1:=” ” statement to blank out the value and then in the detail the formula is global stringvar ref1:=ref1+<<field name>>

The problem is that on change of group the variable is not being reset and we end up with the string being constantly appended to.

I am no crystal expert and the above is from memory so the syntax may be slightly wrong.

Any help much appreciated.
 
you need to add whileprintingrecords; at the top of each formula. This will then reset it for you.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top