Results 1 to 40 of 40

Thread: Coding Fix

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2009
    Location
    England
    Posts
    51

    Coding Fix

    Hey i am at college doing an assignment, i just need a little bit of help can some one help me put in a delete button in to my code some how or some how help me to be able to delete a record from interface.

    Here is the form working


    and here is the code
    Code:
    Private somedata As String
    
    
    Private Sub Command3_Click()
    Open "E:\Movies.txt" For Append As #1
    Print #1, Text1.Text
    
    Print #1, Text2.Text
    
    Print #1, Text3.Text
    
    Print #1, Text4.Text
    
    Print #1, Text5.Text
    
    Close #1
    List1.Clear
    List2.Clear
    List3.Clear
    List4.Clear
    List5.Clear
    
    Call Form_Load
    End Sub
    
    
    
    
    Private Sub Form_Load()
    Open "E:\Movies.txt" For Input As #1
    Do While Not EOF(1)
    Input #1, somedata
    List1.AddItem somedata
    Input #1, somedata
    List2.AddItem somedata
    Input #1, somedata
    List3.AddItem somedata
    Input #1, somedata
    List4.AddItem somedata
    Input #1, somedata
    List5.AddItem somedata
    Loop
    Close #1
    End Sub
    Last edited by S_A_M.1990; Dec 3rd, 2009 at 11:40 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width