We help IT Professionals succeed at work.
Get Started

classic asp dim variable not working

dpicco
dpicco asked
on
380 Views
Last Modified: 2012-05-12
Hello experts,
 
Is there anything wrong with the way I'm declaring and assigning asp variables here? The first variable (lvl_drill) always gets assigned correctly but the second variable (lvl_drill_tla) only gets assigned when lvl_entry = "company". Otherwise it stays at "ope"

dim lvl_drill
dim lvl_drill_tla
if lvl_entry="company" then
lvl_drill="operation"
lvl_drill_tla="ope"
elseif lvl_entry="operation" then
lvl_drill="division"
lvl_drill_tla="div"
elseif lvl_entry="division" then
lvl_drill="business_unit"
lvl_drill_tla="bu"
elseif lvl_entry="business_unit" then
lvl_drill="territory"
lvl_drill_tla="ter"
elseif lvl_entry="territory" then
lvl_drill="market"
lvl_drill_tla="mkt"
elseif lvl_entry="market" then
lvl_drill="location"
lvl_drill_tla="xyz"
end if

Open in new window

Thanks.
Comment
Watch Question
CERTIFIED EXPERT
Awarded 2010
Top Expert 2013
Commented:
This problem has been solved!
Unlock 11 Answers and 14 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE