Hello,
I have this function that changes a sting using another function (scoateA) which is tested and works fine.
When i call this function i get the byref argument type mismatch error and it highlights the line with the function name.
So here it is:
Any ideas?
I have this function that changes a sting using another function (scoateA) which is tested and works fine.
When i call this function i get the byref argument type mismatch error and it highlights the line with the function name.
So here it is:
Code:
Function SirNou( hval As String) As String
Dim nrCar As Integer
Dim finVal As String
nrCar = Len(hval) - Len(Replace(hval, ";", ""))
If nrCar = 0 Then
SirNou = hval
Else
For i = 1 To nrCar
finVal = finVal & scoateA(hval, i)
Next i
SirNou = finVal
End If
End Function