Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF Statement....
Message
From
24/10/1998 15:21:03
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
IF Statement....
Miscellaneous
Thread ID:
00150201
Message ID:
00150201
Views:
42
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!
Next
Reply
Map
View

Click here to load this message in the networking platform