kbraju76
asked on
Storing the Variable value in vb.net
Hi expert,
In the PreRender Sub, iam getting one value(example: date) then I assigned to some variable . While I try to use the date in the another Sub , nothing is there in the variable.
How can I get the variable value from one sub to another Sub.
Your help is much appreciated.
Regards,
Raju.
In the PreRender Sub, iam getting one value(example: date) then I assigned to some variable . While I try to use the date in the another Sub , nothing is there in the variable.
How can I get the variable value from one sub to another Sub.
Your help is much appreciated.
Regards,
Raju.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Public Class Form1
Inherits System.Windows.Forms.Form
Private someDate As Date
Private Sub firstSub(ByVal d As Date)
someDate = d
End Sub
Private Sub secondSub()
' do something with somedate
MsgBox(someDate)
End Sub
End Class