Thursday, March 22, 2012

Session Variables

If I want to place the value in a session variable into a long variable, do
I need to convert it first? If so, what is the call?
Dim nId As Long
nId = Session("Id")"William Gower" <w_gower@.hotmail.com> wrote in
news:OMXvPYtbEHA.2944@.TK2MSFTNGP11.phx.gbl:

> If I want to place the value in a session variable into a long
> variable, do I need to convert it first? If so, what is the call?
> Dim nId As Long
> nId = Session("Id")
No need to convert - Session Variables can store object data types.
Anyhow, I believe .NET should auto-cast the variables to Long for you if
you assign it to a long variable.
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
[url]http://members.ebay.com/aboutme/spot18/[/url]

0 comments:

Post a Comment