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

while do syntax help

Status
Not open for further replies.

dunlop1975

IS-IT--Management
May 22, 2007
124
CA
I am having issues displaying information, I am trying to create to formulas to list partipant and their times. To maximize the space on the page I want to break up into two
seperate formulas that I can put side by side.
i.e

Arron, Bob 50
Banks, Bill 60
.
.



The arrays are fine as they will display properly if I do a join() on them, but the formula below will only return a boolean (in this case displays true). I know the loop is performing because I try to display PARTICIPANT[COUNTER] on the last line it will display the first name that begins with "N".

I cannot figure out what is wrong with my syntax, any help would be greatly appreciated!

---------------------------------
whileprintingrecords;
stringvar array PARTICIPANT;
stringvar array PACUTIME;
local numbervar COUNTER := 1;

while left (PARTICIPANT[COUNTER],1) in "A" to "M" do
(
PARTICIPANT[COUNTER] & " " & PACUTIME[COUNTER] & chr(13);
COUNTER := COUNTER + 1;
);
 
Please disregard, I could not have achieved what I wanted via this method.

I resolved by creating 4 arrays, which also made placement a lot easier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top