473,378 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Inserting NewLine (line break) into resource string

Hello,

I'm having problem inserting line break into one of the strings located in
project resource.

I've tried "Line1/nLine2" (from C#) and it wouldn't work. Tried Line1 +
Environment.NewLine + Line2 also no luck.

Is there any workaround even if it involves editing resources.xml file
directly.

Thanks,

Pen D.
Mar 21 '07 #1
1 8348
Being a VB group, maybe strLine1 & vbCrLf & strLine2
where strLine1 and strLine2 are your 2 string variables.

Tony K

ps: Wouldn't C# use the \n (backslash n) not the forwardslash / ?

"Penelope Dramas" <penelopeDOTdramasATpro-transportDOTcomwrote in message
news:Or**************@TK2MSFTNGP06.phx.gbl...
Hello,

I'm having problem inserting line break into one of the strings located in
project resource.

I've tried "Line1/nLine2" (from C#) and it wouldn't work. Tried Line1 +
Environment.NewLine + Line2 also no luck.

Is there any workaround even if it involves editing resources.xml file
directly.

Thanks,

Pen D.
Mar 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: garbazh | last post by:
The following examples (see PHP 5 for Dummies, p. 82) do not produce the expected results: $string = "Hello \nWorld"; echo $string; and $string = "Line 1 \n\tLine 2"; echo $string;
6
by: The Plankmeister | last post by:
Hi.. I'm trying to achieve a newline effect within a <dt> block, but am having problems. Here is the basic code: <dl> <dt> <a href="admin_menu.html" class="small">Click here to modify the
2
by: Jim Heavey | last post by:
If I have a "long" string variable which is a I break up into a multiline value, I get a "Newline Constant" error in the compiler. If I make it all a single line, then it has no problem. In VB,...
2
by: Justin | last post by:
I have a string built using the stringbuilder class and I need to insert a break at the end of the string, how do I do that? Thanks, Justin.
2
by: Brett | last post by:
I'm writing something similar to this into a text file: txtfileError.WriteLine(CurrentDateTime(1) & " Error in Sub Sub1()" & idvar & Chr(10) & Chr(13) & ex.Message) txtfileError.WriteLine() ...
16
by: junky_fellow | last post by:
Is there any efficcient way of removing the newline character from the buffer read by fgets() ? Is there any library function that is similar to fgets() but also tells how many bytes it read...
11
by: rossum | last post by:
I want to declare a const multi-line string inside a method, and I am having some problems using Environment.NewLine. I started out with: class foo { public void PrintStuff() { const...
9
by: Peter Hartlén | last post by:
I understand that the\n and \r only means something to the C# compiler so when retrieving a line like "Hello\r\nWorld" from a resource file (localized form or self made resource file), it prints...
20
by: dav3 | last post by:
Alright folks I am in need of a lil guidance/assistance here. I have a program which reads in a txt file. This txt file contains lines of the form January 3, 2007, 85.8 Now each line of the txt...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.