vbscript – IsNumeric

**FUNCTION:** `IsNumeric(expression)`

**Description**
Indique si une expression est convertible en nombre.

**Syntax**
`IsNumeric(expression)`

**Paramètres**
– `expression` : Valeur/chaîne à tester.

**Retour**
`True` ou `False`.

**Exemples**
« `vb
WScript.Echo IsNumeric(« 12.3 »)
WScript.Echo IsNumeric(« 12a »)
« `

**Output :** `True ; False`

**Voir aussi**
`CDbl`, `CInt`, `CLng`

vbscript – Array / LBound / UBound

**FUNCTION:** `Array(…) / LBound(array) / UBound(array)`

**Description**
Crée un tableau (`Array`) et obtient les bornes inférieure/supérieure (index) avec `LBound`/`UBound`.

**Syntax**
`Array(…) / LBound(array) / UBound(array)`

**Paramètres**
– `array` : Tableau VBScript.

**Retour**
Index (Integer/Long) pour LBound/UBound.

**Exemples**
« `vb
Dim a
a = Array(« x », »y », »z »)
WScript.Echo LBound(a) &  » ..  » & UBound(a)
« `

**Output :** `0 .. 2`

**Voir aussi**
`Split`, `Join`

vbscript – Len

**FUNCTION:** `Len(string)`

**Description**
Retourne la longueur d’une chaîne.

**Syntax**
`Len(string)`

**Paramètres**
– `string` : Chaîne.

**Retour**
Longueur (Integer).

**Exemples**
« `vb
WScript.Echo Len(« ConformIT »)
« `

**Output :** `8`

**Voir aussi**
`Mid`, `Left`, `Right`

vbscript – LCase / UCase

**FUNCTION:** `LCase(string) / UCase(string)`

**Description**
Convertit une chaîne en minuscules (`LCase`) ou majuscules (`UCase`).

**Syntax**
`LCase(string) / UCase(string)`

**Paramètres**
– `string` : Chaîne source.

**Retour**
Chaîne convertie.

**Exemples**
« `vb
WScript.Echo LCase(« ABC »)
WScript.Echo UCase(« abc »)
« `

**Output :** `abc ; ABC`

**Voir aussi**
`StrComp`, `Replace`

vbscript – Trim

**FUNCTION:** `Trim(string)`

**Description**
Supprime les espaces au début et à la fin d’une chaîne.

**Syntax**
`Trim(string)`

**Paramètres**
– `string` : Chaîne à nettoyer.

**Retour**
Chaîne nettoyée.

**Exemples**
« `vb
WScript.Echo « [ » & Trim( » hello « ) & « ] »
« `

**Output :** `[hello]`

**Voir aussi**
`LTrim`, `RTrim`

vbscript – InStr

**FUNCTION:** `InStr([start, ]string1, string2[, compare])`

**Description**
Retourne la position (1-based) de la première occurrence de `string2` dans `string1`.

**Syntax**
`InStr([start, ]string1, string2[, compare])`

**Paramètres**
– `string1` : Texte dans lequel chercher.
– `string2` : Texte recherché.

**Retour**
Position (>=1) ou 0 si non trouvé.

**Exemples**
« `vb
WScript.Echo InStr(« abcDEF », « DEF »)
« `

**Output :** `4`

**Voir aussi**
`InStrRev`, `Replace`, `Left`, `Mid`, `Right`

vbscript – Join

**FUNCTION:** `Join(list[, delimiter])`

**Description**
Assemble un tableau en chaîne, avec un séparateur.

**Syntax**
`Join(list[, delimiter])`

**Paramètres**
– `list` : Tableau.
– `delimiter` : Séparateur (défaut: espace).

**Retour**
Une chaîne.

**Exemples**
« `vb
Dim a
a = Array(« a », »b », »c »)
WScript.Echo Join(a, « , »)
« `

**Output :** `a,b,c`

**Voir aussi**
`Split`, `Array`

vbscript – Split

**FUNCTION:** `Split(expression[, delimiter[, count[, compare]]])`

**Description**
Découpe une chaîne en tableau, selon un séparateur.

**Syntax**
`Split(expression[, delimiter[, count[, compare]]])`

**Paramètres**
– `expression` : Chaîne à découper.
– `delimiter` : Séparateur (défaut: espace).

**Retour**
Un tableau (Array).

**Exemples**
« `vb
Dim a
a = Split(« a,b,c », « , »)
WScript.Echo a(0) &  » /  » & a(2)
« `

**Output :** `a / c`

**Voir aussi**
`Join`, `UBound`, `LBound`

vbscript – Replace

**FUNCTION:** `Replace(expression, find, replacewith[, start[, count[, compare]]])`

**Description**
Remplace des occurrences d’un texte par un autre.

**Syntax**
`Replace(expression, find, replacewith[, start[, count[, compare]]])`

**Paramètres**
– `expression` : Chaîne source.
– `find` : Texte à trouver.
– `replacewith` : Texte de remplacement.

**Retour**
Une chaîne modifiée.

**Notes**
– `compare` permet le mode de comparaison (binaire/texte) selon besoin.

**Exemples**
« `vb
WScript.Echo Replace(« bonjour monde », « monde », « Laurent »)
« `

**Output :** `bonjour Laurent`

**Voir aussi**
`InStr`, `Split`, `Join`, `StrComp`

vbscript – DateDiff

**FUNCTION:** `DateDiff(interval, date1, date2)`

**Description**
Calcule la différence entre deux dates selon un intervalle (jours, mois, minutes…).

**Syntax**
`DateDiff(interval, date1, date2)`

**Paramètres**
– `interval` : Code d’intervalle (ex: « d » jours).
– `date1` : Date de départ.
– `date2` : Date d’arrivée.

**Retour**
Un nombre (Long) représentant l’écart.

**Exemples**
« `vb
WScript.Echo DateDiff(« d », #02/01/2026#, #02/09/2026#)
« `

**Output :** `8`

**Voir aussi**
`DateAdd`, `DatePart`