Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21116

Question in IF STATEMENT

$
0
0
im adding a 3 o'clock habit in my program every 3 pm in the computer clock an automatic voice will speak here is my code

my code in Hour Label
Code:

lblhr.Caption = Format$(Now, "hh:mm:ss AM/PM")
this will be put in my Form_Load
Code:

If lblhr.caption=3:00:00 pm then
           
            Dim app_path As String
                  app_path = App.Path
           
            If Right$(app_path, 1) <> "\" Then
                      app_path = app_path & "\"
                          txtmusic.Text = app_path & "3oclockhabit.wav"
                  With mmcplayer
                      .Filename = txtmusic.text
                          .Command = "open"
                            .Command = "play"
                  End With
            End If

        End If

my problem is in the highlighted color what will i put... thanx

Viewing all articles
Browse latest Browse all 21116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>