PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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.
WEBDEV - Server code You have the ability to use a character string in Unicode format.
Linux You cannot use character strings in Unicode format.
<Options>: Constant or combination of constants
Formatting options:
ccUpCaseSwitches the character string into uppercase characters (including the accented characters).
ccLowCaseSwitches the character string into 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)
  • tabulation (character 9)
  • carriage return (character 13) and line break (character 10)
  • control characters 11 and 12
Versions 20 and later
ccIgnoreInsideSpace
New in version 20
ccIgnoreInsideSpace
ccIgnoreInsideSpace
The following characters are deleted inside the character string:
  • space (character 32)
  • tabulation (character 9)
  • carriage return (character 13) and line break (character 10)
  • control characters 11 and 12
WEBDEV - Browser codePHP This constant is not available.
ccIgnorePunctuationAndSpaceRemoves the punctuation and the space characters
Remarks

StringFormat and Unicode

If the string passed in parameter is in ANSI format, the result will be in ANSI format.
If the string passed in parameter is in Unicode format, the result will be in UNICODE format.
Note: If the result on an ANSI string is assigned to a UNICODE string (and conversely), the conversion into the format of the assignment string is automatically performed.
See Managing the UNICODE format for more details.
Component : wd250vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment