CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: VB 5

  1. #1
    Join Date
    Nov 1999
    Posts
    1

    VB 5

    I need to know how to save!!! To set up a save button with code in my application, I don't know how to do this can you help???

    Thanks


  2. #2
    Guest

    Re: VB 5

    What and where you want to save? You can save some data in a file, in a database, registry and so on. With file you can do something like this:

    Dim intFileNumber as Integer

    Open "C:\...\Test.txt for input lock Read Write as #FileNumber
    input #FileNumber, "My Testing Data"
    Close #FileNumber



    With database there is a lot of methods: Data Control, DAO, ADO ...
    With registry use SaveSetting statement or use API.
    Vlad



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

Featured