IR Framework

String.column Method

Returns a copy of the string formatted to fit in a column of a specific width.
object.column (width[, justification])

Arguments

object
Required. Always the name of a String object.


width
Required. The number of characters to output.


justification
Optional. The justification value for the output. 0 = left, 1 = right. If omitted, the output is left-justified.



Return Value

The String.column method returns a copy of the string formatted to the width of the column. If the length of the string is less than width, the string is padded with spaces to achieve the desired width. If the length of the string is more than width, only the characters near the justification end are returned.

Remarks

The following example illustrates the use of the String.column method.

		Console.Writeln("Hello".column(10, 1));	//	returns '     Hello'
		Console.Writeln("Hello".column(3, 1));	//	returns 'llo'


Requirements

rTrim(), lTrim()