new line with vbCrLf is not work?

new line with vbCrLf is not work?

Anonymous
Not applicable
938 Views
3 Replies
Message 1 of 4

new line with vbCrLf is not work?

Anonymous
Not applicable

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.

 

 

 

0 Likes
939 Views
3 Replies
Replies (3)
Message 2 of 4

kerry_w_brown
Advisor
Advisor

 

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 or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 3 of 4

Hallex
Advisor
Advisor

You have to use MText istead

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 4 of 4

Anonymous
Not applicable
thanks
0 Likes