' si la chaine contient 1ère ligne on initialise "Nom court"
ccession = getDot(chaine)
cessionCur = ccession
DTransaction = dateTransaction(chaine)
HTransaction = heureTransaction(chaine)
montant1 = getMontant(chaine) 'montant de l'opération
CodeReponse = getcodeReponse(chaine)
encaisse = getEncaisse(chaine) 'tempArray(12)
cTraitement = codeTraitement(chaine)
Else
DTransaction = dateTransaction(chaine)
HTransaction = heureTransaction(chaine)
montant1 = getMontant(chaine)
CodeReponse = getcodeReponse(chaine)
cTraitement = codeTraitement(chaine)
End If
Function getcodeReponse(ByVal chaine As String) As Boolean
Dim tempArray() As String
Dim taille As Integer
tempArray = Split(chaine, ";")
taille = UBound(tempArray)
If (CInt(tempArray(7)) = 0) Then
getcodeReponse = True
Else
getcodeReponse = False
End If
End Function