Results 1 to 3 of 3

Thread: String

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    String

    I have a form with checkboxes, textfiels and a datagridview. I want to take this information and put in a string which then should be send by mail. What is the best way to go about this?

    I'd rather not generate a .txt file on the hdd. Is it a bad choice to generate one long (loooooong) String and then send it by mail?

    (Visual Basic 2005 Express)

  2. #2
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: String

    Not really, a string is just data. Plus text does not take up too much space... I mean.. 50kb of text is a lot, and thats a small JPG filesize... easily sent through email...

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: String

    The checkboxes and textboxes (is that what you mean by textfiels?) could be pretty straightforward. You would want to have some kind of separator in there to tell when one ended and the other began, but that could be accomplished easily enough with commas, #, or some other symbol. The datagridview is the main issue. That could be all kinds of sizes, with large amounts of information.

    You might consider using XML in this case. XML will create a string, but the different fields would be contained within tags making it easier to parse on the other end. However, it might be more difficult to create the XML string from the different sources you have.
    My usual boring signature: Nothing

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