|
-
Feb 9th, 2006, 02:58 AM
#1
Thread Starter
Member
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)
-
Feb 9th, 2006, 04:12 AM
#2
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...
-
Feb 9th, 2006, 10:49 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|