It's not pseudocode, but try these changes to Simon's algorithm.

Make each list the same length (the maximum number of values for a property) and fill the unneeded indexes in each list with some unique marker. Test for the marker in each loop. When you find it, drop out of the current loop and all lower loops. (To skip the lower loops, set a flag when you find the marker and have each loop drop out without doing anything if the flag is set. Clear the flag each time the first loop starts.)

Hi Simon,

You are right, except if one or more of the lists is empty, it short-circuits everything.

Rick

Hi Rick.

Unless I greatly misunderstand you, I believe you just need a series of
nested loops, driven by a series of string lists.

The rough algorithm is:

New StringList NewVar(vlFirst);
// Go through the first row of the table and add members to the
stringlist.
New StringList NewVar(vlSecond);
// Go through the next row of the table and add members to the
stringlist.
New StringList NewVar(vlThird);
// Go through the next row of the table and add members to the
stringlist.

// (If you don't know how many rows you'll have, you could assemble them
in an EVector object.)

// Now use nested loops:

Loop While(vFirstIndex <= vlFirst.count) LoopVar(vFirstIndex) InitVal(1)
Incr(1)
  Set vFirstText = vlFirst[vFirstIndex];

  Loop While(vSecondIndex <= vlSecond.count) LoopVar(vSecondIndex)
InitVal(1) Incr(1)
     Set vSecondText = vlSecond[vSecondIndex];

     write console vFirstText + ' ' + vSecondText + ' ' + vThirdText +
' ';

     Loop While(vThirdIndex <= vlThird.count) LoopVar(vThirdIndex)
InitVal(1) Incr(1)
        Set vThirdText = vlThird[vThirdIndex];

     EndLoop
  EndLoop
EndLoop


???
Simon
_______________________________________________


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to [EMAIL PROTECTED]
or visit http://lists.frameusers.com/mailman/options/framers/dtaylor%40opnet.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.


----------------------------------------------------------
 David M. Taylor                 Email: [EMAIL PROTECTED]
 Principal Technical Writer      Phone:    (240) 497-3000
 OPNET Technologies, Inc.        Fax:      (240) 497-3001
----------------------------------------------------------
     Register for OPNET's Online Technology Workshops
     at http://www.opnet.com/TechWorkshops
----------------------------------------------------------



_______________________________________________


You are currently subscribed to Framers as [EMAIL PROTECTED]

Send list messages to [EMAIL PROTECTED]

To unsubscribe send a blank email to [EMAIL PROTECTED]
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to [EMAIL PROTECTED] Visit
http://www.frameusers.com/ for more resources and info.

Reply via email to