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

String and number variable problem 1

Status
Not open for further replies.

itsuit

IS-IT--Management
Apr 23, 2002
53
US
Using Crystal Reports 9:

I was given the following to use with CR6, but it won't work in CR9 - I get an error telling me that "the number of copies of the string is too large or not an integer".

NumberVar x;
StringVar tmpString;
tmpString :={BANK.BNK_NUM}+ToText({CHECKTMP.CHK_NUM},0,"");
x :=10-length(tmpString);
tmpString :="C" + ReplicateString("0", x)+tmpString + "C";

Any help is greatly appreciated.

Kyle
 
Here's your problem: the length of tmpString is larger than 10 and therefore it is bombing out.... As a proof to yourself, increase the 10 number to 40 for a second and you'll see that it works.

Thadeus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top