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!

Crystal Syntax Array Problem 2

Status
Not open for further replies.

mychal

Programmer
Feb 13, 2002
41
0
0
US
I get a "The remaining text does not appear to be a part of the formula" error with this code:

WhilePrintingRecords;

Global NumberVar Array x;
Global NumberVar y;

x := Split ("111.222.333.444", ".");

y := x(1);

The cursor ends up on the last line between the x and the open paren. What am I doing wrong here?

Thanks.
 
You need to use square brackets to subscript an array:
Code:
WhilePrintingRecords;

Global NumberVar Array x;
Global NumberVar y;

x := Split ("111.222.333.444", ".");

y := x[1];

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top