ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Inserts a string into another character string at a given position.
Example
// On ajoute Sol à SiLaFaMiReDo
sNotes is string = "SiLaFaMiReDo"
sNotesComplet is string = StringInsert(sNotes, "Sol", 5)
// sNotesComplet contient donc "SiLaSolFaMiReDo"
Syntax
<Result> = StringInsert(<Initial string> , <String to insert> , <Insertion position>)
<Result>: Character string
Character string into which the string was inserted at the specified position.
<Initial string>: Character string or Buffer
Character string into which another string will be inserted.
WARNING: This string will not be modified by the insertion.
<String to insert>: Character string or Buffer
String to be inserted into <Initial string>.
<Insertion position>: Integer
Position at which <String to insert> will be added.
  • If the specified position is negative, the string will be inserted at the beginning of the initial string.
  • If the specified position is greater than the length of the initial string, the string will be inserted at the end of the initial string.
Business / UI classification: Neutral code
Component: wd300vm.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help