Alternative way to save file??-VBForums
Results 1 to 2 of 2

Thread: Alternative way to save file??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2012
    Posts
    24

    Alternative way to save file??

    Ok, so in my database i have an admin form, where it allows you to do admin stuff.

    Example: Allows you to enter price per membership, and change it.


    Problem i'm having is how would i save it, since all previous files had more than 1 records, so it would be in the form of:

    Code:
    FilePut(1, OnePerson, NumberOfRecords + 1)
    Since this file will only cosist of one record, i don't know how i would save it.

    i tried FilePut(1, OnePerson, Index) But it doesn't work.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    88,656

    Re: Alternative way to save file??

    Never use FilePut. That is VB6 style I/O. If you want to use a file to store records like a database then use XML or else use a BinaryReader and BinaryWriter.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.