It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Getting User Details and Save it in a Different Text File

Moderator: dafunkymunky

Getting User Details and Save it in a Different Text File

Postby paddy123 on Sun Apr 11, 2010 10:41 pm

I'm Writing a Program,
which has a Shopping Cart
A User Form and a Login Form.
when the User Signs in, and clicks on Items that they want in to the List box
how do i save the Users Details along side the Name of Items inside the list box
So far i have

The User Account File is in the Bin Folder of the Program, and the Save.txt is inside the Same Folder
Code: Select all
Dim w As IO.StreamWriter

        Dim i As Integer
        w = New IO.StreamWriter("Save.txt")
        For i = 0 To listTitle.Items.Count - 1
            w.WriteLine(listTitle.Items.Item(i) & " " & " " & ListPrice.Items(i) & " " & " " & ListQty.Items(i))
        Next
        w.Close()


This Code does not Work no more with 2008 Visual Basic.
Code: Select all
Get <filenumber>,<address>,<variable>
Put <filenumber>,<address>,<expression>
paddy123
 
Posts: 1
Joined: Sun Apr 11, 2010 10:31 pm

Who is online

Users browsing this forum: No registered users and 6 guests