PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • RepeatString function and UNICODE (syntax 1)
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
Concatenates N repetitions of the same character string or buffer.
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 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad 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
Res = RepeatString("x", 4)     // Returns "xxxx"
Res = RepeatString("Boby", 2)  // Returns "BobyBoby"
Res = RepeatString("", 2)      // Returns ""
Res = RepeatString("", 0)      // Returns ""
Syntax

Concatenating N repetitions of the same character string Hide the details

<Result> = RepeatString(<Initial String> , <Number of Repetitions>)
<Result>: Character string
  • New character string containing the value to repeat,
  • Empty string ("") if <Number of Repetitions> is negative or null.
<Initial String>: Character string (with quotes)
Character string to repeat.
<Number of Repetitions>: Integer
Number of times the <Initial String> must be repeated.

Concatenating N repetitions of the same buffer Hide the details

<Result> = RepeatString(<Initial Buffer> , <Number of Repetitions>)
<Result>: Buffer
  • New buffer containing the value to repeat,
  • Empty buffer if <Number of Repetitions> is negative or null.
<Initial Buffer>: Buffer
Buffer to repeat.
<Number of Repetitions>: Integer
Number of times the <Initial Buffer> must be repeated.
Remarks

RepeatString function and UNICODE (syntax 1)

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 will be implicitly 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
Exemplo RepeatString
EDT_resultado=RepeatString("-",30)

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/11/aula-972-windev-string-32-repeatstring.html

https://www.youtube.com/watch?v=jAQi1HLvq7g


De matos
Dec. 04 2016