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

String Variable

Status
Not open for further replies.

korata

Technical User
Aug 24, 2004
38
US
How can I avoid an error of a string can be at most 254 character long.I have over a 1000 records that i am storing on the string variable for later use.should i change the varible form string to some other variable?
 
Keep in mind that the version of your software is critical when requesting assistance.

The only way to beat this in CR 8.5 or below is to break up the variable into multiple 254 char chunks, or upgrade.

Not being able to see your formula doesn't help either.

You may even be able to break it up on the database itself prior to bringing it in to Crystal, again, since you don't share technical information, one can't advise.

Try posting more than a sentence, such as:

Crystal version
Database/connectivity used
Example data
Expected output

To break it, use LEN() checks against the variable and add to the next stringvar for greater than 254.

Then just drop them all into a text object to display them as one.

k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top