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

ARRAY ERROR

Status
Not open for further replies.

reidtw

MIS
Feb 10, 2004
74
0
0
GB
Hi,

Using cr8 & a sql 2k db.

I'm trying to create an array to use in a graph but keep getting the error "the result of a formula cannot be an array". Here's some code: -

//@arraytitle
whileprintingrecords;
StringVar Array ArrayTitle;
ArrayTitle:= ["{@Title03}","{@Title04}","{@Title05}","{@Title06}","{@Title07}","{@Title08}","{@Title09}","{@Title10}","{@Title11}","{@Title12}","{@Title13}","{@Title14}","{@Title15}","{@Title16}","{@Title17}"];

//@title03
"01. StringTitle"

How do I get past the error?

Cheers
T
 
What are you expecting to display? What is the purpose of your last 2 lines of code:
Code:
//@title03
"01. StringTitle"

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"making predictions is tough, especially about the future" - Yogi Berra
 
Hi dgillz,

The last two lines of code are not part of the formula, they are showing the type of string value that is to go into the array; //@title03 is the first value in the array - {@Title03}

Apologies for not being clearer.

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top