PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • StringFormat and UNICODE
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Formats a character string according to the selected options.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
MyString1 is string = "Developing is fantastic"
MyString1 = StringFormat(MyString1, ccUpCase)
// MyString1 contains "DEVELOPING IS FANTASTIC"
Syntax
<Result> = StringFormat(<String> , <Options>)
<Result>: Character string
String formatted according to the selected criteria.
<String>: Character string (with quotes)
Character string to format.
WINDEV You can use a Unicode string.
Linux You cannot use character strings in Unicode format.
<Options>: Constant or combination of constants
Formatting options:
ccUpCaseConverts the string to uppercase characters (including accented characters).
ccLowCaseConverts the string to lowercase characters.
ccNormalNo formatting is performed.
ccIgnoreAccentFormat without accented 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
Versions 20 and later
ccIgnoreInsideSpace
New in version 20
ccIgnoreInsideSpace
ccIgnoreInsideSpace
The 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
Java This constant is not available.
Java This constant is not available.
ccIgnorePunctuationAndSpaceRemoves spaces and punctuation characters.
Remarks

StringFormat 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 StringFormat 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: wd260vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment