English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hey, I'm using VB.NET 2005 and am trying to add a DELETE statement to a command. Here's the code:

Dim strDelete as string = _

"DELETE * FROM Families WHERE Name = '" & lvfamilies.selecteditems & " ' "



This previously worked in VB6 but now it tells me array bounds cannot appear in type specifiers. Any ideas?

2007-06-06 06:45:00 · 2 answers · asked by austin 2 in Computers & Internet Programming & Design

2 answers

Selected ItemS is a collection (More than one) Try using SelectedItem .

2007-06-06 07:22:28 · answer #1 · answered by MarkG 7 · 0 0

im not sure what lv is but if you were using a drop down list

it would be ddlwhatever.selectitems.value

you need to add the .value after lvfamilies.selecteditems

2007-06-06 08:46:13 · answer #2 · answered by kaddu747 2 · 0 0

fedest.com, questions and answers