How do I access variable?

Author Message
Glen

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 3/4/2011
  • Status: offline
How do I access variable? Friday, March 04, 2011 1:59 AM (permalink)
0
I have a script that determines the size of a file and assigns it to a variable.
I need to access it via vbscript.
here is the stripped example, but the msgbox is blank when <%=myString%> shows the correct value.
 <% .............. myString = objFl.DateLastModified%>   <Script language = "vbscript"> Sub Button_OnClick() msgbox myString End Sub
</Script> 

 
 
#1
    webber123456

    • Total Posts : 58
    • Scores: 0
    • Reward points : 0
    • Joined: 9/20/2007
    • Status: offline
    Re:How do I access variable? Friday, March 04, 2011 6:34 AM (permalink)
    0
    <% myString = objFl.DateLastModified%> 
    <Script language = "vbscript">
    Sub Button_OnClick() msgbox ("<%=myString%>") End Sub
    </Script>
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9