strcase

AutoCad AutoLISP Functions

 
strcase
 
 
 

Returns a string where all alphabetic characters have been converted to uppercase or lowercase

(strcase string [which]) 

Arguments

string

A string.

which

If specified as T, all alphabetic characters in string are converted to lowercase. Otherwise, characters are converted to uppercase.

Return Values

A string.

Examples

Command: (strcase "Sample")

"SAMPLE"

Command: (strcase "Sample" T)

"sample"

The strcase function will correctly handle case mapping of the currently configured character set.