Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public Variable confusion
Message
From
15/01/2013 09:14:42
 
 
To
14/01/2013 19:39:05
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01562505
Message ID:
01562561
Views:
46
Ok, if I'm translating this correctly, you do something like

Public Class Signon
Public SCN as String
.
.
.
dim DispQuestion as new frmDispQuestion 'Create/call 2nd form here
DispQuestion.Show()

Then in DispQuestion, something like

Public Class DispQuestion
Public dSCN as String = SignOn.SCN


?





>I usually put a similar property in the second form and populate it from the property in the first form after instantiating the second form.
>
>
>
>
>>Hi Gang
>>
>>I have a variable (SCN) that is declared as a Public variable in the first form.
>>
>>Public Class Signon    'Form declaration
>>  Public SCN as String
>>  {Bunches of code here}
>>
>>  Private Sub cmdStart()
>>    {more code here}
>>    dim DispQuestion as new frmDispQuestion  'Create/call 2nd form here
>>    DispQuestion.Show()
>>  end sub
>>end class
>>
>>
>>
>>First form calls second form which also needs to use SCN, but it doesn't recognize SCN as being declared in 2nd form. What do I need to do differently for the 2nd form to 'see' the SCN variable?
>>
>>Thanks
>>Dorris
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform