Xbasic

Predefined Display Formats

IN THIS PAGE

Description

Alpha Anywhere uses display formats to present data in form fields.

Character 

Code
Description/Example
""

None

"C"

Uppercase

"L"

Lowercase

"F"

First letter uppercase and remainder of the string unchanged.

"W"

First letter of each word uppercase and remainder of word unchanged.

"Y"

First letter uppercase and remainder of the string lower case.

"Z"

First letter of each word uppercase and remainder of word lowercase.

Numeric 

Code
Description/Example
""

None

"B"

1234567.78 (blank if zero)

"$("

$123,456.78, ($123,456.78) for negative numbers

"@("

Same as "$(" except that the $ sign is left justified and is outside the parentheses for negative numbers. $ 123,456.78. (Version 8 and above).

","

123,456.78

",("

123,456.78, (123,457.78) for negative numbers. (Version 8 and above).

"("

Negative numbers in parentheses. No thousands separator.

"%"

123,456.78%

"XF"

Fifty six and 78/100

"XF$"

Fifty six and 78/100 Dollars

"$(B"

$123,456.78 (blank if zero) (negative numbers in parentheses)

",B"

123,456.78 (blank if zero)

"%B"

123,456.78% (blank if zero)

"XBF"

Fifty six and 78/100 (blank if zero)

"X$(BF"

Fifty six and 78/100 Dollars (blank if zero) (negative numbers in parentheses)

"$(*"

***$123,456.78 (right justified and padded with asterisks) (negative numbers in parentheses)

",*"

***123,456.78 (right justified and padded with asterisks)

"X*F"

***Fifty six and 78/100 (right justified and padded with asterisks)

"X$*F"

***Fifty six and 78/100 Dollars (right justified and padded with asterisks)

"$(B*"

***$123,456.78 (blank if zero, right justified and padded with asterisks) (negative numbers in parentheses)

",B*"

***123,456.78 (blank if zero, right justified and padded with asterisks)

"XB*F"

***Fifty six and 78/100 (blank if zero, right justified and padded with asterisks)

"X$(B*F"

***Fifty six and 78/100 Dollars (blank if zero, right justified and padded with asterisks)

"XC"

FIFTY SIX AND 78/100

"X$(C"

FIFTY SIX AND 78/100 DOLLARS

"XBC"

FIFTY SIX AND 78/100 (blank if zero)

"X$(BC"

FIFTY SIX AND 78/100 DOLLARS (blank if zero)

"X*C"

***FIFTY SIX AND 78/100 (right justified and padded with asterisks)

"X$(*C"

***FIFTY SIX AND 78/100 DOLLARS ( right justified and padded with asterisks)

"XB*C"

***FIFTY SIX AND 78/100 (blank if zero, right justified and padded with asterisks)

"X$(B*C"

***FIFTY SIX AND 78/100 DOLLARS (blank if zero, right justified and padded with asterisks)

"XL"

fifty six and 78/100

"X$(L"

fifty six and 78/100 dollars

"XBL"

fifty six and 78/100 (blank if zero)

"X$(BL"

fifty six and 78/100 dollars (blank if zero)

"X*L"

***fifty six and 78/100

"X$(*L"

***fifty six and 78/100 dollars

"X*BL"

***fifty six and 78/100 (blank if zero)

"X$(B*L"

***fifty six and 78/100 dollars (blank if zero)

"XW"

Fifty Six And 78/100

"X$(W"

Fifty Six And 78/100 Dollars

"XBW"

Fifty Six And 78/100 (blank if zero)

"X$(BW"

Fifty Six And 78/100 Dollars (blank if zero)

"X*W"

***Fifty Six And 78/100 (right justified and padded with asterisks

"X$(*W"

***Fifty Six And 78/100 Dollars (right justified and padded with asterisks

"XB*W"

***Fifty Six And 78/100 (blank if zero, right justified and padded with asterisks)

"X$(B*W"

***Fifty Six And 78/100 Dollars (blank if zero, right justified and padded with asterisks)

Date 

Code
Description/Example
""

None

"1-"

12-31-2016

"2-"

31-12-2016

"1/"

12/31/2016

"2/"

31/12/2016

"3"

31 December 2016

"4"

December 31, 2016

"8"

December 31st, 2016

"5-"

12-16

"6-"

12-31-16

"7-"

31-12-16

"5/"

12/16

"6/"

12/31/16

"7/"

31/12/16

"9-"

31-Dec-16

"10"

31 Dec 2016

"11-"

16-12-31

"12-"

2016/12/31

"11/"

16/12/31

"12/"

2016/12/31

"11."

16.12.31

"12."

2016.12.31

"3C"

31 DECEMBER 2016"

"4C"

DECEMBER 31, 2016

"8C"

DECEMBER 31ST, 2016

'9C"

31-DEC-16

"10C"

31 DEC 2016

Logical 

Code
Description/Example
""

None

"1"

True/False

"2"

Yes/No

See Also