I have an unusual problem where the following code works fine on many winxp machines while it doesn't on some others. The Directss1 is supposed to read first Lbltext1, then read Lbltext2 (if not hidden) and finally Lbltext4 -- again if not hidden. As I said it works fine on most machines but on others it reads only the last label in the sequence. In other words if all labels are showing and not hidden, it will only read Lbltext4. But if that label is hidden it will only read Lbltext2 and when that is hidden it will read Lbltext1. It does not read all of them in turn. I wonder if the problem is in the code or the machines?
Any help would be appreciated.
Mustakbal
Code:
Private Sub Commd4_Click()
DirectSS1.Speak Lbltext1.Caption
If Lbltext2.Visible = True Then
DirectSS1.Speak Lbltext2.Caption
Else: End If
If Lbltext4.Visible = True Then
DirectSS1.Speak Lbltext4.Caption
Else: End If
End Sub
Mustakbal
Comment