I have the following:
vb Code:
Overloads Function ShowDialog(ByVal owner As IWin32Window, ByVal Song As JBDatabase.Database.Song) As JBDatabase.Database.Song Dim NowPlayingSongs = (From xItem In Autoexec.frmJukebox.tlPlayList.Items.OfType(Of tliJBItem)() Select xItem.Song).ToList ...
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




Code Project - "Best VB.NET article of October 2011"
on the left <--)
Reply With Quote