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.
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.
<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
JavaPHP This constant is not available.
JavaPHP 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