|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Padding blank space using PadRightI tried in vain to add blank space to the end of couple variables as below:
mPadding = Convert.ToChar(" ") mdriverBegin.PadRight(16, mPadding) mdriverEnd.PadRight(16, mPadding) mSitekey.PadRight(4, mPadding) What should I use to get a blank space? Thanks Bill PadRight does not change the string, it returns a new string that has
been padded so you need a line like this: mdriverBegin = mdriverBegin.PadRight(16, mPadding) Bill Nguyen wrote: Show quoteHide quote > I tried in vain to add blank space to the end of couple variables as below: > > mPadding = Convert.ToChar(" ") > > mdriverBegin.PadRight(16, mPadding) > > mdriverEnd.PadRight(16, mPadding) > > mSitekey.PadRight(4, mPadding) > > What should I use to get a blank space? > > > > Thanks > > Bill Thanks Chris!
This seemed to work for me. Bill Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> wrote in message news:1150492426.678759.132820@c74g2000cwc.googlegroups.com... > PadRight does not change the string, it returns a new string that has > been padded so you need a line like this: > > mdriverBegin = mdriverBegin.PadRight(16, mPadding) > > > Bill Nguyen wrote: >> I tried in vain to add blank space to the end of couple variables as >> below: >> >> mPadding = Convert.ToChar(" ") >> >> mdriverBegin.PadRight(16, mPadding) >> >> mdriverEnd.PadRight(16, mPadding) >> >> mSitekey.PadRight(4, mPadding) >> >> What should I use to get a blank space? >> >> >> >> Thanks >> >> Bill >
FileSystemWatcher raises Changed Twice....
Memory Leaks Overrides and mybase ?? Date time format Flash SWF in VS2005 .net? RichTextFormat Guru needed Can we seperate the Bussiness Logic and User Interface? Printing over network... How to "Archive" a text file with multiple handles open vb.net form that behaves like Access? |
|||||||||||||||||||||||