"L'index se trouve en dehors des limites du tableau.
Karim_94
Messages postés10Date d'inscriptionmercredi 20 avril 2022StatutMembreDernière intervention 1 mai 2022
-
Modifié le 1 mai 2022 à 14:11
Whismeril
Messages postés19025Date d'inscriptionmardi 11 mars 2003StatutContributeurDernière intervention19 avril 2024
-
1 mai 2022 à 14:20
Bonjour,
Voila j'ai un petit probleme. Je me demandais si vous pouviez m'aider. Je vous envoi le bout de programme ou l'erreur suivante apparait
"L'index se trouve en dehors des limites du tableau.
je veux convertit le text en array pour parcourir dedans
moi je veux faire un test pour un text lorsque je trouve "04" alors il prend 13 caracteres et move dans un autre variable puis le remove pour reception de prochaine
Imports System.IO.Ports
Public Class Form1
Dim dataIN As String
Dim datainterruption As String
Dim dataOUT As String
Dim variateur As String
Dim tram As String
Dim keb As String
Dim j As Integer = 0
Dim i As Integer
Private Delegate Sub AccesDelegue(ByVal AjouterText As String)
Private Sub AccesFormPrinpal(ByVal TextForms As String)
dataOUT = TextForms
For i = 0 To dataOUT.Length Step 1
keb = dataOUT(i)
Next i
Do
j = keb.LastIndexOf("04")
tram = keb.Substring(j, 19)
variateur = tram
tram = ""
While keb.Contains("04")
End While
Loop
TxtDonnesRecus.Text = variateur
si il'ya d'autre problemes
Whismeril
Messages postés19025Date d'inscriptionmardi 11 mars 2003StatutContributeurDernière intervention19 avril 2024656 Modifié le 1 mai 2022 à 14:21