W
Wapiti
CF VB.NET
I'm filling up a fixed length field format string. As I'm appending the
text fields, I need to pad them on the right with spaces to a given length.
ie. sPartNo is 15 chars. A part no of "PX-22", needs to be written to the
line as "PX-22 ". This field will then be appended to a string
variable, where other fields will be appended.
strRec = "A"
strRec += rFill(sPartNo, " ", 15)
strRec += rFill(sQty, " ", 9) ...
rFill is a function I wrote and used in VB6.
From what I've seen with .net, there must be a method to do this easier than
before.
Is there?
Thanks.
I'm filling up a fixed length field format string. As I'm appending the
text fields, I need to pad them on the right with spaces to a given length.
ie. sPartNo is 15 chars. A part no of "PX-22", needs to be written to the
line as "PX-22 ". This field will then be appended to a string
variable, where other fields will be appended.
strRec = "A"
strRec += rFill(sPartNo, " ", 15)
strRec += rFill(sQty, " ", 9) ...
rFill is a function I wrote and used in VB6.
From what I've seen with .net, there must be a method to do this easier than
before.
Is there?
Thanks.