Les instruments sont définis en utilisant les opcodes instr et endin.
Instruments are defined using the instr and endin opcodes.
Numéros de ligne corrigés dans les instructions d'instr.
Line numbers corrected in instr statements.
Cet exemple utilise la fonction InStr pour renvoyer la position de la première occurrence d'une chaîne dans une autre chaîne.
This example uses the InStr function to return the position of the first occurrence of one string within another.
La fonction d'InStr () fonctionne du côté gauche de la corde considérée.
The InStr() function works from the left side of the considered string.
Comme vous ne savez pas exactement où la troisième période se trouve, vous appelez la fonction InStr trois fois pour trouver la position du troisième point.
Because you don't know exactly where the third period is located, you call the InStr function three times to find the position of the third period.
Pour effectuer une recherche avec InStr en respectant la casse, ajoutez le paramètre 0, comme indiqué dans l'exemple suivant.
To change the search so that InStr is case sensitive, add the parameter 0, as shown in the following example
Elle retourne 0 au lieu (comme InStr).
It returns 0 instead (like InStr).
Étant donné que vous ne connaissez pas le nombre de chiffres composent la première partie de l'adresse, vous utilisez la InStr, fonction pour déterminer la position de la première période.
Because you don't know how many digits make up the first part of the address, you use the InStr function to find the position of the first period.
Si vous avez une corde et voulez trouver un caractère ou une sous-chaîne dans elle, vous pouvez appeler la fonction d'InStr ().
If you have a string and want to find a character or a sub-string in it, you can call the InStr() function.
La description InStr Retourne la première occurence de la sous-chaîne spécifiée.
Description InStr Returns the first occurrence of the specified substring.
Fonction InStr [Exécution]
InStr Function [Run-time]
Assurez-vous que « Instr » est sélectionné en en-tête.
Make sure that "Instr" is selected in the header.
La fonction Instr renvoie la position où la correspondance a été trouvée.
The Instr function returns the position at which the match was found.