satinsilhouette
Instructor
- Feb 21, 2006
- 625
I have an array set up to gather 2 sets of variables to fill and x and a y array. I don't have the detail section quite down, it is asking for a then on the if statement in XI R2. Thought you could leave it without a then piece to the statement. I am horrible at loops, how do I do this?
Reset grp hdr:
whileprintingrecords;
numbervar array x := 0;
datevar array y := date(0,0,0);
numbervar i := 0;
numbervar j := 0;
Detail:
whileprintingrecords;
numbervar array x;
datevar array y;
numbervar i := i + 1;
numbervar j := j + 1;
This is the piece I am having issues with for the detail section:
if i <= j then (
redim preserve x[j];
redim preserve y[j];
x := tonumber({numberfield});
y := datevalue({datefield})
);
grp ftr:
whileprintingrecords;
numbervar array x;
datevar array y;
xirr(x,y)
Thanks so much!
satinsilhouette
Reset grp hdr:
whileprintingrecords;
numbervar array x := 0;
datevar array y := date(0,0,0);
numbervar i := 0;
numbervar j := 0;
Detail:
whileprintingrecords;
numbervar array x;
datevar array y;
numbervar i := i + 1;
numbervar j := j + 1;
This is the piece I am having issues with for the detail section:
if i <= j then (
redim preserve x[j];
redim preserve y[j];
x := tonumber({numberfield});
y := datevalue({datefield})
);
grp ftr:
whileprintingrecords;
numbervar array x;
datevar array y;
xirr(x,y)
Thanks so much!
satinsilhouette