%ws - Display String

%ws is used for the output of character strings.

format

string

output

 

'Mr %ws Bloggs'

'Frederick'

Mr Frederick Bloggs

(1)

'Mr %9ws Bloggs'

'Fred'

Mr      Fred Bloggs

(2)

'Mr %`9ws Bloggs'

'Fred'

Mr      Fred Bloggs

(3)

'Mr %.4ws Bloggs'

'Frederick'

Mr Fred Bloggs

(4)

'Mr %-9ws Bloggs

'Fred'

Mr Fred      Bloggs

(5)


(1) minimum field width,
(2) minimum of 9 characters, right justified,
(3) right justified in a space the width of 9 characters
(4) maximum of 4 characters,
(5) minimum of 9 characters, left justified.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited