J
Joe via DotNetMonster.com
Hi,
How can I declare a variable in a Class so that it can be accessed from the
page that calls it? Normally I would declare a variable outside a function
so that it can be used globally on the page but I'm not sure how to do it
in a Class. I tried using public but that didn't work. I have the following:
Public Class dataClass
Public Shared Function GetRep(ByVal prodNumber As Integer) As
DataSet
Dim ProdName as String
I tried Public ProdName as String but got an error.
Thanks
How can I declare a variable in a Class so that it can be accessed from the
page that calls it? Normally I would declare a variable outside a function
so that it can be used globally on the page but I'm not sure how to do it
in a Class. I tried using public but that didn't work. I have the following:
Public Class dataClass
Public Shared Function GetRep(ByVal prodNumber As Integer) As
DataSet
Dim ProdName as String
I tried Public ProdName as String but got an error.
Thanks