Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public Variable confusion
Message
De
15/01/2013 10:09:04
 
 
À
15/01/2013 09:43:48
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01562505
Message ID:
01562587
Vues:
35
>>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?
>
>Are you confusing the public member with a variable with global scope. 'Public' in the above means that SCN will be exposed as a property of a Signon instance. How are you trying to access it ?

Yes, I probably am. I WAS trying to just refer to it by name 'SCN', though in hindsight (it being perfect and all) I probably should have been referring to it as 'SignOn.SCN'
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform