jstr$

Syntax

new_text = JSTR$(text, width, type_justification)

Arguments

text, new_text: text

width, type_justification: integer

Meaning

If type_justification is a negative number, text will be left-justified within width characters. If type_justification is zero, text will be centred within width characters. If type_justification is positive, text will be right-justified within width characters. The space preceeding or following width characters will be blank-filled.

Example

new_text = JSTR$('NAME', 10, 0)

Result

new_text is '...NAME...' (for the sake of clarity, spaces are indicated by full stops in this example).