Hello,
I know this is a really dim question but I've looked everywhere with no luck.
How do I define a variable as public so the scope will include a function? I've tried:
<%Public myName
myName = "Crundy"
PrintName()%>
Some HTML
<%function PrintName()
response.write(myName)
end function%>
But I get a syntax error on the "Public" line. The functions can't read the variable if I don't define it. C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
I know this is a really dim question but I've looked everywhere with no luck.
How do I define a variable as public so the scope will include a function? I've tried:
<%Public myName
myName = "Crundy"
PrintName()%>
Some HTML
<%function PrintName()
response.write(myName)
end function%>
But I get a syntax error on the "Public" line. The functions can't read the variable if I don't define it. C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!