Vous êtes sur le site Web historique de la documentation de 4D. Les documentations sont progressivement déplacées vers developer.4d.com

Accueil

 
4D v19
SUBSTITUTE

SUBSTITUTE 


 

SUBSTITUTE ( str , toReplace , replacement {, instance} )  
Paramètre Type   Description
str  RefCell in String or reference to a cell containing the string in which you want to replace characters
toReplace  Texte in String to replace
replacement  Texte in New string to use instead of existing string
instance  Numérique in Which occurrence of the existing string to replace; otherwise every occurrence is replaced

The SUBSTITUTE function replaces toReplace in the str text with replacement and returns the edited text.

By default, SUBSTITUTE replaces the first occurrence of toReplace. Pass instance to define which occurrence you want to replace.

If no occurrence of toReplace is found, SUBSTITUTE returns str.

Exemple  

SUBSTITUTE("Hello You","You","World") //Hello World

 
PROPRIÉTÉS 

Produit : 4D
Thème : Formules 4D View Pro

 
PAGE CONTENTS 
 
HISTORIQUE 

 
UTILISATION DE L'ARTICLE

4D View Pro ( 4D v19)