|
|
 |
Silly (ASP) Question....
date posted 16th July 2001 18:17
Hi all
I am selecting things based on a string (i know - but it has to be a string)
Am i better having one huge select case statement (with many many more
entires than shown)
select case sTag
case "[[svr_page]]"
case "[[svr_browser]]"
case "[[user_name]]"
case "[[user_email]]"
end select
or would i be better splitting it up a little by reading off the text before
the underscore (eg 'svr' or 'user') and having a nested select case eg
select case sStartofTag
case "svr"
select case sRestofTag
case "page"
case "browser"
end select
case "user"
select case sRestofTag
case "name"
case "email"
end select
end select
its which will work best with a very large number of these '[[tag]]'
thingies i have to put in....
Rick
Kitty5 WebDesign - http://Kitty5.com
Hi-Impact database driven web site design & e-commerce
TEL : +44 (01625) 266358 - FAX : +44 (01625) 611913 - ICQ : 15776037
POV-Ray News & Resources - http://Povray.co.uk
PGP Public Key
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x231E1CEA
|
 |
|