Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a string contains line feed ? 1

Status
Not open for further replies.

poporogue

Programmer
Dec 20, 2002
16
HK
i have a string that need to display in the report and also need to break it to the next line
could anyone can help me to solve this problem?

Since i am not familirize with vba, i just want to have the same result just like letter literal int java
string stra = "XXXX\nXXXX"

result will become
XXXX
XXXX

thanks
poporogue
 
Try this:

string stra = "XXXX" & vbCrLf & "XXXX"



Bob Scriver
Want the best answers? See FAQ181-2886
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???

 
oh~i'm so happy that it works.
you are very helpful.
thankyou.

poporogue
 
poporogue: Glad to have helped you. Thanks for the star as it is much appreciated.

Bob Scriver
Want the best answers? See FAQ181-2886
Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top