Was the code that gave the error all on one line?? If so, you could have moved the Dim statement to the next line as well:
Code:
If Page.IsPostBack then
Dim msg as String
If list1.Items(0).Selected Then msg = msg & list1.Items(0).Text & "<br />"
...
End If
Should work equally well if msg is only used inside the If statement.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.