Answered
Declairing Variables in Behaviors with ASP VBScript
Ok, I don't know if this is a problem outside of VBScript, so
maybe this issue is just there. When you declair variables in
VBScript, you can't declair the same variable name twice. If you
do, you get an error.
So, problem is, if I insert an Update, Insert and/or Delete behavior on the same page, the code generated by DW declairs common variable. So when you run the page, you get that declaration error message.
I normally just go in the code and comment out all but the first instance of the declaration. That works fine, but then the behavior dissapears from the Behaviors Panel. Ok, so that's not really a big problem because I hand code them easy enough.
Nevertheless, I like the behaviors listed, if nothing else, so I can see a summary of what behaviors I have defined in the page. Especially if it is a page I haven't messed with ina while.
Is there any work around for this? I haven't tried going in and editing the behavior. Maybe somehow I could do that and just delete the common declarations? Any ideas?
So, problem is, if I insert an Update, Insert and/or Delete behavior on the same page, the code generated by DW declairs common variable. So when you run the page, you get that declaration error message.
I normally just go in the code and comment out all but the first instance of the declaration. That works fine, but then the behavior dissapears from the Behaviors Panel. Ok, so that's not really a big problem because I hand code them easy enough.
Nevertheless, I like the behaviors listed, if nothing else, so I can see a summary of what behaviors I have defined in the page. Especially if it is a page I haven't messed with ina while.
Is there any work around for this? I haven't tried going in and editing the behavior. Maybe somehow I could do that and just delete the common declarations? Any ideas?
