moody DirectSS1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mustakbal
    New Member
    • Jul 2007
    • 25

    moody DirectSS1

    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?


    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
    Any help would be appreciated.


    Mustakbal
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    if the same code is working on other machines ,how the code be wrong.

    Comment

    • mustakbal
      New Member
      • Jul 2007
      • 25

      #3
      I was inclined to think that it wasn't the code but when it happened on more than one machine I thought it best that someone with more knowledge look at the code and see if I overlooked something. It's likely that this problem is related to winxp with a specific service pack. Anyways, is it possible to have the code "force" the execution of reading the first label before it moves to the next label and check if it has to read it.
      I'm looking to have the code work properly even on those machines.

      Comment

      Working...