Re: Padding blank space using PadRight
- From: "Bill Nguyen" <billn_nospam_please@xxxxxxxx>
- Date: Fri, 16 Jun 2006 16:16:37 -0700
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
.
- References:
- Padding blank space using PadRight
- From: Bill Nguyen
- Re: Padding blank space using PadRight
- From: Chris Dunaway
- Padding blank space using PadRight
- Prev by Date: Re: Writing a byte to a specific location in a file
- Next by Date: Re: Date time format
- Previous by thread: Re: Padding blank space using PadRight
- Next by thread: Refer to an Instance of a form
- Index(es):