By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

Insert carriage return/line feed with C# and ADO.NET in MS Access

P: n/a
I would like to insert some text with embedded carriage return/line feed
into a MS Access text field with OleDb and C# ADO.NET. I tried to use "\n"
in combination with "\r". If I display the input in a text field I only see
quads.

Tia

Torsten
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Have you tried Environment.NewLine()?

Regards

--
Steven Lewis [MCP - C#]

Nov 17 '05 #2

P: n/a
> I would like to insert some text with embedded carriage return/line feed
into a MS Access text field with OleDb and C# ADO.NET. I tried to use "\n"
in combination with "\r". If I display the input in a text field I only see quads.

These 3 variants ar possible:

1.) Convert.ToChar(13).ToString() + Convert.ToChar(10).ToString()

2.) "\r\n"

3.) Environment.NewLine

I think the last one is the best one.
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.