PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch 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.
WINDEVWEBDEV - 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 codeAndroidAndroid Widget JavaPHP This constant is not available.
ccIgnorePonctuationAndSpaceRemoves 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment