I have the following:

vb Code:
  1. Overloads Function ShowDialog(ByVal owner As IWin32Window, ByVal Song As JBDatabase.Database.Song) As JBDatabase.Database.Song
  2.         Dim NowPlayingSongs = (From xItem In Autoexec.frmJukebox.tlPlayList.Items.OfType(Of tliJBItem)() Select xItem.Song).ToList
  3. ...

and it errors on the song bit in "Select xItem.Song" ... saying that "Range variable 'Song' hides a variable in an enclosing block or a range variable previously defined in the query expression."

... why is this ... it seems to conflict with "ByVal Song As JBDatabase.Database.Song" but i don't see why as i am trying to get the property of the tliJBItem in the link statement.

Thanks
Kris