4D v16.3

Lowercase

Home

 
4D v16.3
Lowercase

Lowercase 


 

Lowercase ( aString {; *} ) -> Function result 
Parameter Type   Description
aString  String in String to convert to lowercase
Operator in If passed: keep accents
Function result  String in String in lowercase

Lowercase takes aString and returns the string with all alphabetic characters in lowercase.

The optional * parameter, if passed, indicates that any accented characters present in aString must be returned as accented lowercase characters. By default, when this parameter is omitted, accented characters “lose” their accents after the conversion is carried out.

The following project method capitalizes the string or text received as parameter. For instance, Caps ("john") would return "John".

  //Caps project method
  //Caps ( String ) -> String
  //Caps ( Any text or string ) -> Capitalized text
 
 $0:=Lowercase($1)
 If(Length($0)>0)
    $0[[1]]:=Uppercase($0[[1]])
 End if

This example compares the results obtained according to whether or not the * parameter has been passed:

 $thestring:=Lowercase("DÉJÀ VU") ` $thestring is "deja vu"
 $thestring:=Lowercase("DÉJÀ VU";*) ` $thestring is "déjà vu"



See also 

Uppercase

 
PROPERTIES 

Product: 4D
Theme: String
Number: 14

This command can be run in preemptive processes

 
HISTORY 

Modified: 4D v11 SQL

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)