> Yes, I am looking over tyhe cose again, and it seems better with the case.
>
> However, I can't why you would place ASP tags in a function that's
decalred
> under vbscript???
Because, the value you're trying to get is actually from the server. Just
view
the source on the output page and you'll see that it just hardcodes the
value
as to what it was when the page was first processed.
A better way would be to take that declaration outside the scope of your
function, like such:
<SCRIPT>
DIM fieldstatus
fieldstatus = <%=fieldstatus%>
SUB LinkClick(intMyStatus)
' Your code here that checks the CASE
' SELECT CASE intMyStatus
' CASE 1
' Do what you want
' CASE etc...
' END SELECT
END SUB
LinkClick(fieldstatus)
' That calls your sub right away (don't do this if the form is
' down below this code.
</SCRIPT>
Then, when you want to change it's status dynamically, just call the
function
again with the correct value passed in.
Chris Tifer
http://www.emailajoke.com
> From what I know, it works for variables, but I fdont think you can
actually
> have complete ASP tags and process them server side on this function.
>
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]