标签云

微信群

扫码加入我们

WeChat QR Code

I have a 200+ case statement in Classic ASP which is getting out of control. It sets 5 variables, based on which case is selected. Address, Phone, Name etc. Just sets the variables and nothing else in each case.

Databases or files are not an option for this application.

Coming from the Perl world I would use a hash to store this info.


The cases are locations so location 1-200+ ** I did not write the code :D **

2018年08月14日58分06秒

CASE "216" AGE = "21" LOGO = "" NAME = "ABC" ADDRESS = "" PHONE = "" CASE "217" AGE = "22" LOGO = "" NAME = "XYZ" ADDRESS = "1 Best Way"

2018年08月14日58分06秒