TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: CHRIS CRANFORD
date: 2003-12-23 23:28:28
subject: Parsing Routine

Path: internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!news.atman.pl!news.intercom.pl!f124.n480!f127.n480!f112.n480!f200.n2432!f605.n774!f500.n123!f2000.n106!f45.n396!f1.n379!f1200.n379!not-for-mail
Newsgroups: fido.c_plusplus
Distribution: fido
From: CHRIS CRANFORD 
Date: Tue, 23 Dec 03 23:28:28 +0100
Subject: Parsing Routine
Message-ID: 
Organization: Thanks for using Mail-ennium/32
 2437/40
Lines: 30
Xref: intern1.nntp.aus1.giganews.com fido.c_plusplus:179

I'm currently working on some template routines for a program I'm
putting together and I'm running into some issues.  

What I want to do is have a template such as follows:

  -- Excert --

  %LOOP ECHOES%
  Area: %AREA.NAME% - %AREA.DESCRIPTION%
  -----------------------------------------------------------
  %LOOP ECHOFILES%
  %FILE.FILENAME:13% %FILE.FILESIZE:13% %FILE.DESCRIPTION(1):40%
  %LOOP FILEDESCRIPTION%
                              %FILE.DESCRIPTION:40%
  %ENDLOOP FILEDESCRIPTION%

  %ENDLOOP ECHOFILES%
  -----------------------------------------------------------
   %AREA.TOTALFILES% file(s) in %AREA.BYTES% byte(s)
  
  %ENDLOOP ECHOES%

  -- End Excert --

Anyone have any suggestions on how to handle the nested looping
construct?

Thanks
Chris

SOURCE: echoes via archive.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.