MixedCase

Top  Previous  Next

Prototype

 

StrOutput:= MixedCase(StrInput)

 

Description

 

Returns the string parameter by converting in upper-case every word initials as well as by converting the rest in lower-case.

 

Parameters

 

StrInput:  input string.

 

Returned value

 

StrOutput:  output string.

 

Notes

 

None.

 

Example

 

// Open a text file

strFile:=TextFileOpen('c:\documents\letter.txt',false);

 

// Read a line from file

Text:=TextFileReadln(strFile);

 

// Log a message with the read text

ApplicationLog('File contains the following text: ' + Text);

 

// Return the modified string

NewText=MixedCase(Text);

 

// Log a message with the modified read text

ApplicationLog('Here it is the modified text: ' + NewText);

 

// Close the file

FileClose(strFile);