Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF Statement....
Message
De
24/10/1998 15:21:03
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
IF Statement....
Divers
Thread ID:
00150201
Message ID:
00150201
Vues:
43
HI,

I must be missing something here...sure could use some help.
THe field FLD! defintley contains the data from the COmboBox LIST field (as viewed in the watch window). However, it just falls through the = condition and I don't understand why.. Here's the simple code:

Private Sub cboAmpChannel_Click()
Dim fld1 As String

fld1 = Trim(cboAmpChannel.Text)

If Trim(fld1) = "1(Mono)" Then
chkAmpStereoMonoDrive.Enabled = False
chkAmpStereoMonoDrive.Refresh
End If


cboampchanne.text is populated when selected by the user and is defined in the List property in this combo box. Is there something about being defined in the List property that causes the field definitions to differ? I can look in the watch window and see that fld1 is = to "1(Mono)", yet it compares unequal. WHY?

Thanks in advance for your response.

Barry
If at first you don't succeed......SET STEP ON!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform