Good Afternoon Experts!
I have a text field that I only want to print certain lines of. The start line is fixed as line 4, however the last line is dependant of where a certain string sits within the text field afetr line 6. The formula below is what I want to acheive but Crystal is telling me that from the first 'else', that the text does not appear to be part of the formula. I'm pretty sure that this is going to be a parenthesis issue and I've tried several changes but to no avail....any help please? Thanks Seteve
stringvar array x := split({v_extradatacomputers1.TaskList SBS},chr(10));
numbervar i;
stringvar Result;
for i:= 4 to {@RowCount} do
if i < 6 then
result := result + x;
else
if i > 6 then
if instr(x, '==========') > 0 then
i = {@RowCount};
else
result := result + x;
else
result := result + x[6];
Result;
I have a text field that I only want to print certain lines of. The start line is fixed as line 4, however the last line is dependant of where a certain string sits within the text field afetr line 6. The formula below is what I want to acheive but Crystal is telling me that from the first 'else', that the text does not appear to be part of the formula. I'm pretty sure that this is going to be a parenthesis issue and I've tried several changes but to no avail....any help please? Thanks Seteve
stringvar array x := split({v_extradatacomputers1.TaskList SBS},chr(10));
numbervar i;
stringvar Result;
for i:= 4 to {@RowCount} do
if i < 6 then
result := result + x;
else
if i > 6 then
if instr(x, '==========') > 0 then
i = {@RowCount};
else
result := result + x;
else
result := result + x[6];
Result;