WriteLine

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

Is there anyway in VB.NET that I use WriteLine/Write to write something to
end of a string ?

Thanks,
Ali
 
Is there anyway in VB.NET that I use WriteLine/Write to write something to
end of a string ?

No, but perhaps you can do what you want with the String.Format()
method, or using a StringBuilder and its AppendFormat mefhod?



Mattias
 
Use a StringWriter.

Mattias Sjögren said:
No, but perhaps you can do what you want with the String.Format()
method, or using a StringBuilder and its AppendFormat mefhod?



Mattias
 
Is there anyway in VB.NET that I use WriteLine/Write to write
something to end of a string ?

If you mean something like getting the output from

Console.Writeline( "Error {0} : {1}", 123, "Pop" )

into a string, try the String.Format() method, as in

Dim sResult as String _
= String.Format( "Error {0} : {1}", 123, "Pop" )

HTH,
Phill W.
 
Back
Top