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!

'A string can be at most 254 character's long ' error

Status
Not open for further replies.

crystalreport85

Programmer
Sep 27, 2010
51
CA
thread767-367436

I am trying to print all the values(more then 254) from the array at a time. I am using crystal report 8.5

I used the following code of synapsevampire from the thread thread767-367436


whileprintingrecords;
stringvar array MyArray := {?a}; //your array
stringvar MyOutPut;
numbervar x;

for x := 1 to 7 do(
MyOutPut := MyOutPut+MyArray[x]+chr(13)
);
MyOutPut

I get this error --'A string can be at most 254 character's long '

How to print values more then 200
 
i don't have crystal in front of my but essentially you have to create a running count and when the count reaches a certain amount (say 225) it stops adding to the initial display and starts adding to a secondary (or tertiary) display.

I am sure someone here can provide an example of code that i can't pull from the top of my head.
 
Were you unable to use:

join({?a},",")

??

Also the 7 should be the number of elements in the array. Try replacing it with:

ubound({?a})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top