When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles
Message Board
Related Web Technologies
User Tips!
Coding Tips

Sample Chapters
Commonly Asked Message Board Questions
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Stump the SQL Guru!
XML Info
Author an Article
ASP ASP.NET ASP FAQs Message Board Feedback
Print this page.
User Tips: Improving the readability when using GetString

From Jason H.:

In the article on GetString, it is shown that you should use GetString to create one giant string for tables, combos, etc from a recordset column. This is not necessary, as you can make your GetString parameters like this:

theCombo = "<option>" & prsRecordset.GetString(,,,"</option>" & vbCrLf & vbTab & "<option>","&nbsp;" )

vbCrLf inserts a linefeed, and vbTab indents. This makes for pretty code, too (thus eliminating your statement that it may be ugly, but it works!)

ASP.NET [1.x] [2.0] | ASPFAQs.com | Advertise | Feedback | Author an Article