-
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)
-
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...
-
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.