Results 1 to 3 of 3

Thread: Simple compression problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Near A2, MI
    Posts
    5

    Question

    Hello all,
    I've been working on a prog that has an array of 16 combo boxes. These boxes are automatically filled upon loading with 127 different options. When I started defining a file structure to save my prog within I ran into some trouble. I decided that for ease of use (so I would not have to parse 0), I would take those 16 different settings and convert them to a character (ascii/ansi chr range 0 - 255) and this would take up much less space (one byte instead of a max of 3). However, I've ran into a problem with loading the data back in. It seems that whenever vb encounters a 44 or a "," it breaks off the remainder of the string. I'm just loading the data as a single (somewhat long) string.

    I haven't had much time to look into it, but I was wondering if anyone has had similar problems, and/or knows of a solution to my dilemma?

    (BTW I'm using VB 6.0 Ent)

    Thanks!
    in.nom.i.nate (i-nom'e-nit) adj.

    Def: Having no name; annonymous

  2. #2
    Guest
    I don't know that this will work, and it kinda defeats the
    purpose, but could you make two reads and physically place
    the comma in between the reads?


    DerFarm

  3. #3
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Hey innominate, read the posts in your other thread before re-posting. Yonatan probably has your answer.

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

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