When you think ASP, think...
logo
spgif
search
spgif
site-index
spgif
Recent Articles xml
All Articles
ASP.NET Articles
ASPFAQs.com
Related Web Technologies
User Tips!
Coding Tips
spgif
spgif spgif
spgif

leftnav-resources
spgif
Sections:
Sample Chapters
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
XML Info
Information:
Feedback
Author an Article
spgif
spgif spgif
ASP ASP.NET ASP FAQs Feedback topnav-right
right-bg
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