ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
  • <String type>.Format and UNICODE
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Formats a character string according to the selected options.
Example
MyString1 is string = "Developing is fantastic"
MyString1 = MyString1.Format(ccUpCase)
// MyString1 contains "DEVELOPING IS FANTASTIC"
Syntax
<Result> = <String>.Formats(<Options>)
<Result>: Character string
String formatted according to the selected criteria.
<String>: Character string
Character string to format.
<Options>: Constant or combination of constants
Formatting options:
ccIgnoreAccentFormat without accented characters.
ccIgnoreInsideSpaceThe following characters are deleted within the string:
  • space (character 32)
  • tab (character 9)
  • carriage return (character 13) and line feed (character 10)
  • control characters 11 and 12
ccIgnorePunctuationAndSpaceRemoves spaces and punctuation characters.
ccIgnoreSpaceThe following characters are deleted at the beginning and at the end of the string:
  • space (character 32)
  • tab (character 9)
  • carriage return (character 13) and line feed (character 10)
  • control characters 11 and 12
ccLowCaseConverts the string to lowercase characters.
ccNormalNo formatting is performed.
ccUpCaseConverts the string to uppercase characters (including accented characters).
Remarks

<String type>.Format and UNICODE

If the string passed as a parameter is an ANSI string, the result will be an ANSI string.
If the string passed as a parameter is a UNICODE string, the result will be a UNICODE string.
Remark: If the result of <String type>.Format on an ANSI string is assigned to a UNICODE string (and vice versa), the conversion will be implicitly performed.
For more details, see Managing UNICODE.
Component: wd290vm.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help