Results 1 to 2 of 2

Thread: Why won't this work??

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Why won't this work??

    I can't get it to go the next item in the list like it should. The two IF statements are there because occasionally, the counter will skip "00:01" or "00:00" and if it skips "00:00" it will start to count back up, so it will have to hit on "00:01" again. This makes sure the counter ENDS. So here's the code:

    PHP Code:
    'Load file information to player
    Let Songtitle = "*** " & ListView2.SelectedItem.Text & " ***"
    Let bitrate = ListView2.SelectedItem.SubItems(3) & " KBPS"
    Let Frequency = ListView2.SelectedItem.SubItems(4) & " KHZ"
    Let counter = ListView2.SelectedItem.SubItems(1)
     origTime = Now()
        songTime = "00:" & counter
        counter.Caption = Format$(songTime, "n:ss")
    Timer1.Enabled = True

    ''start playing''''
    ActiveMovie1.Filename = ListView2.SelectedItem.SubItems(2) & "\" & ListView2.SelectedItem.Text
    ActiveMovie1.AutoStart = True
    If counter = "00:00" Then
    ListView2.ListItems(ListView2.SelectedItem.Index + 1).Selected = True
    Do
    Loop
    End If

    If counter = "00:01" Then
    ListView2.ListItems(ListView2.SelectedItem.Index + 1).Selected = True
    Do
    Loop



    End If 
    Any help appreciated.

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    How about
    If val(right$(counter,2)) <= 0 Then
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width