Results 1 to 2 of 2

Thread: Alternative way to save file??

Hybrid View

  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
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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.

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