Hi,

sorry, I forget to say one thing:

the ListBox is used as a play list, and once a song is played, its entry have to be deselected automatically and the next one (selected Row) in the list starts. That is what is not working:

the Row is not de-selected, but I put code to do that.

Help!

Emile

Subject: How do I de-select a Row in a ListBox ?
From: Emile Schwarz <[EMAIL PROTECTED]>
Date: Thu, 22 Jun 2006 17:54:25 +0200

Hi,

REALbasic 2006
OS: LMW


The question is a bit large, and I know how to deselect a Row in a ListBox. What I want to do is to deselect the Row once the song playing is over, but this does not works and the song is playing back again.

Here's an idea of what the code does:

The ListBox contains a list of songs, I select many songs. In a loop, I search in the whole ListBox the Selected Rows (from 0 to ListCount). Once I reach a selected Row, I play using the Sound Class the song. In the IsPlaying loop I placed the code to delect this particular Row (the one that is playing).

I even added before the End If (if the Row is selected, no Else) that deselect code who works in MouseDown, no success... The same file is played again and again and again.

I do not bother too much about that file playing and playing and playing again because I love that song, but I love other songs too; and hearing the same song a bit too much will do... ad nauseam!

Any idea to achive my goal ?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to