Re: Padding blank space using PadRight

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks Chris!
This seemed to work for me.

Bill

"Chris Dunaway" <dunawayc@xxxxxxxxx> wrote in message
news:1150492426.678759.132820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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



.