Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some VB syntax
Message
De
13/09/2000 11:03:12
 
 
À
11/09/2000 22:02:44
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00415230
Message ID:
00415829
Vues:
17
>How to simulate the following code:
>I need:
>frmTransaction.Text1.Enabled = True
>
>If I were to store strA = "frmTransaction.Text1.Enabled"
>how to simulate the above statement?
>Something like:
>
>strA = True
>???

If you want the action to take effect when you change the variable then you have to set a type of control to it and assign the enabled property:

'General Declarations:
Dim strA as Control
'Form's Load:
Set strA = frmTransaction.Text1
'.. later in the code:
strA.Enabled = True 'Or strA.Enabled = Not strA.Enabled for a toggle effect.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform