Re: Loop through values of variables
"Tony Vissoc" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Looks like 3 nested loops. First loop makes 5 the first number, calls second loop. Second loop makes 14 the second number (first cannot= second cannot= third) and calls third loop. Third loop uses 18 for initial. Then, steps thru rest and exits. 2nd loop then grabs 18 for itself and calls third loop again, etc. Tony >>> [email protected] 07/31/03 09:26AM >>> I am relatively new to Delphi. I have an edit box which requires the user to enter 6 numbers separated by '/'. Each number is assigned to a variable (say count1 through to count6). Could you help me to create a loop that will create all the combinations from the 6 random numbers that are only 3 digits long. IOW if the numbers entered were 5/14/18/27/32/38, then the first combination will be 5/14/18... all the way to the last which will be 27/32/38. Perhaps there is some better way of doing it... Thanks in advance! CodeCoffer - new Delphi code protection Tool! http://www.delphicollection.com/public/CodeCoffer.htm --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> CodeCoffer - new Delphi code protection Tool! http://www.delphicollection.com/public/CodeCoffer.htm --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/