469,649 Members | 1,199 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

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

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
2 18550
Have you tried Environment.NewLine()?

Regards

--
Steven Lewis [MCP - C#]

Nov 17 '05 #2
> 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.

Similar topics

3 posts views Thread by Canes_Rock | last post: by
6 posts views Thread by pk | last post: by
2 posts views Thread by Andrew Chanter | last post: by
3 posts views Thread by Gillian Steele | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.