Global Variables

Results 1 to 2 of 2

Thread: Global Variables

  1. #1
    Cade Guest

    Default Global Variables

    How do I make a Variable Global throughout all the functions/subs<BR>on a page? i used Global intfound at the top but says its undefined in my functions.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Global Variables

    Just declare the variable as normal, but outside any of the functions. Example page:<BR><BR>&#060;%<BR> Dim aVariable &#039this is global<BR> aVariable = "Hello World"<BR><BR> sub abc<BR> <BR> Response.Write "aVariable is " & aVariable <BR> end sub<BR><BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts