Click here to Skip to main content
15,924,982 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How do I delete data?? Pin
Anonymous29-Mar-04 3:46
Anonymous29-Mar-04 3:46 
GeneralRe: How do I delete data?? Pin
Dave Kreskowiak29-Mar-04 4:06
mveDave Kreskowiak29-Mar-04 4:06 
GeneralRe: How do I delete data?? Pin
Anonymous29-Mar-04 13:28
Anonymous29-Mar-04 13:28 
GeneralRe: How do I delete data?? Pin
Dave Kreskowiak29-Mar-04 17:11
mveDave Kreskowiak29-Mar-04 17:11 
GeneralRe: How do I delete data?? Pin
Pugzley29-Mar-04 17:42
Pugzley29-Mar-04 17:42 
GeneralRe: How do I delete data?? Pin
Dave Kreskowiak30-Mar-04 0:57
mveDave Kreskowiak30-Mar-04 0:57 
GeneralRe: How do I delete data?? Pin
Pugzley1-Apr-04 13:51
Pugzley1-Apr-04 13:51 
GeneralRe: How do I delete data?? Pin
Dave Kreskowiak2-Apr-04 2:58
mveDave Kreskowiak2-Apr-04 2:58 
Pugzley wrote:
The name of the list box is actually "User".

The SelectedItems property is not throwing the error, it's the class path your using to get it. If the ListBox on the Form is call User then the code should look like this:
Dim i As Integer
Open "source.txt" For Input As #1
Open "target.txt" For Output As #2
Do While Not EOF(1)
    Input #1, UserName, UserID
    If Not User.SelectedItems.Contains(UserName) Then
	Write #2, UserName, UserID
    End If
Loop
Close

I'm assuming that this code is on the form that the ListBox is on. If not, you'll have to modify the line to get to the ListBox, like specifying which form the listbox is on.


RageInTheMachine9532
GeneralRe: How do I delete data?? Pin
Pugzley4-Apr-04 15:23
Pugzley4-Apr-04 15:23 
GeneralStoring Complex Mathmetical Equations in Database Pin
Syed Usman24-Mar-04 23:08
Syed Usman24-Mar-04 23:08 
GeneralProblem about Animation Pin
ngjeffy24-Mar-04 22:31
ngjeffy24-Mar-04 22:31 
GeneralRe: Problem about Animation Pin
Nadroj25-Mar-04 18:54
Nadroj25-Mar-04 18:54 
GeneralProblem with RequiredFieldValidator Pin
Aizupis24-Mar-04 21:55
Aizupis24-Mar-04 21:55 
Generalshortening my code Pin
ibok2324-Mar-04 15:08
ibok2324-Mar-04 15:08 
GeneralRe: shortening my code Pin
Nadroj24-Mar-04 17:52
Nadroj24-Mar-04 17:52 
GeneralRe: shortening my code Pin
Dave Kreskowiak25-Mar-04 1:07
mveDave Kreskowiak25-Mar-04 1:07 
GeneralRe: shortening my code Pin
ibok2325-Mar-04 3:21
ibok2325-Mar-04 3:21 
GeneralRe: shortening my code Pin
Wayne Phipps25-Mar-04 4:10
Wayne Phipps25-Mar-04 4:10 
GeneralRe: shortening my code Pin
Dave Kreskowiak25-Mar-04 4:11
mveDave Kreskowiak25-Mar-04 4:11 
GeneralRe: shortening my code Pin
ibok2325-Mar-04 4:25
ibok2325-Mar-04 4:25 
GeneralRe: shortening my code Pin
Dave Kreskowiak25-Mar-04 4:37
mveDave Kreskowiak25-Mar-04 4:37 
GeneralRe: shortening my code Pin
Wayne Phipps25-Mar-04 4:49
Wayne Phipps25-Mar-04 4:49 
GeneralRe: shortening my code Pin
ibok2325-Mar-04 4:59
ibok2325-Mar-04 4:59 
GeneralData Bound ComboBox Formatting Pin
Karsten.Habay@skynet.be24-Mar-04 10:43
Karsten.Habay@skynet.be24-Mar-04 10:43 
GeneralCD Audio Extraction Pin
RobReid24-Mar-04 10:41
RobReid24-Mar-04 10:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.