Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace huge Case statement in Classic ASP

Tags:

asp-classic

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.

like image 894
Brian G Avatar asked Feb 03 '26 22:02

Brian G


1 Answers

Brian, the classic ASP equivalent of a Perl hash is the Scripting.Dictionary object.

like image 134
Luke Girvin Avatar answered Feb 06 '26 20:02

Luke Girvin