Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Const redefined error

Status
Not open for further replies.

PSFMIS

MIS
Feb 3, 2006
28
US
The code below gives me a name redefined error. Could someone explain why this is and if there is another way to do this... Couldn't I define the ALLOWADD first then set TRUE/FALSE? I'm not sure how with this Const.

Code:
If session("role") = "ADMIN" Then
const ALLOWADD = TRUE
Else
const ALLOWADD = false
End If

Thanks,
Aaron
 
If it will have a different value depending on conditions then it is a variable not a constant. Just drop the const from the front of each line.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top