.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

new line with vbCrLf is not work?

3 REPLIES 3
Reply
Message 1 of 4
Amrit.shr
628 Views, 3 Replies

new line with vbCrLf is not work?

Dear All,

To write for Single line text

in VB6 when we use vbCrLf it work and come in new line  but in .net it is not working

is therre any other way to do same thing.

          

            Dim Str1 As String = " This is Test for First Line"
            Dim str2 As String = " This is Test for Second Line"
            Dim Str3 As String = Str1 & vbCrLf & str2

            Dim acText As DBText = New DBText()
            acText.SetDatabaseDefaults()
            acText.Position = ed.GetPoint("click Point To Insert").Value
            acText.Height = 1
            acText.TextString = Str3.ToString
            acBlkTblRec.AppendEntity(acText)
            acTrans.AddNewlyCreatedDBObject(acText, True)

 Thanks for help.

 

 

 

3 REPLIES 3
Message 2 of 4
kdub_nz
in reply to: Amrit.shr

 

I may be wrong, but I didn't think Text used formatting characters.

 

What does the actual string look like when it's added ??

 

Regards

 


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Message 3 of 4
Hallex
in reply to: Amrit.shr

You have to use MText istead

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 4 of 4
Amrit.shr
in reply to: Hallex

thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost