Hi All, > Another trick ... the first thing I do in any language is to create > a putline subroutine whose job is to output text (passed as a > parameter)...
Another benefit of this type of coding is when you want to capture the entire output stream for the page. PHP can do this natively, but in ASP you have to wrap response.write in order to collect the whole stream. For example, you have a CMS or something where you want to be able to collect the results of each page the first time it is run. One option is to run a GET of the page from the page itself (sloppy), but wrapping the output stream with something like a putLine() routine lets you collect the entire result into a string variable directly that you can play with however you like. For example, since <br> is invalid XHTML, if your pages are all initially coded for HTML and you didn't write breaks as <br />, you can replace() them within putLine(). Regards, Shawn K. Hall http://ReliableAnswers.com/ '// ======================================================== "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg." -- Bjarne Stroustrup ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
