silentwolf
Active member
- Local time
- Today, 02:55
- Joined
- Jun 12, 2009
- Messages
- 644
Hi guys,
I know this has been discussed in the formum but for my issue I can not seam to make it work.
What I like to do is following
The condition works until the first Endif
What I like to do is to have multiple condition when the String does not Start with "IBAN" but it is still includet in the string.
And for thos situation I also need multiple desicions.
I tried but if the string does not start with "IBAN" it does not return anything it is not getting into the other if statement after the Endif
Maybe someone can help please?
Cheers
I know this has been discussed in the formum but for my issue I can not seam to make it work.
What I like to do is following
Code:
Public Function ReturnUMS01(strText As String) As String
If strText Like "IBAN*" Then
If strText Like "*Zahlungsreferenz*" Then
mStartPos = Ibanlength(strText) + 2
mEndPos = InStr(strText, "Zahlungsreferenz:") - 1
mIntLength = mEndPos - mStartPos
ReturnUMS01 = Mid(strText, mStartPos, mIntLength)
If strText Like "*Auftraggeberreferenz:*" Then
mStartPos = Ibanlength(strText) + 2
mEndPos = InStr(strText, "Auftraggeberreferenz:") - 1
mIntLength = mEndPos - mStartPos
ReturnUMS01 = Mid(strText, mStartPos, mIntLength)
End If
If strText Like "*IBAN*Auftraggeberreferenz*" Then
mStartPos = Ibanlength(strText) + 2
mEndPos = InStr(strText, "Auftraggeberreferenz:") - 1
mIntLength = mEndPos - mStartPos
ReturnUMS01 = Mid(strText, mStartPos, mIntLength)
End If
End Function
The condition works until the first Endif
What I like to do is to have multiple condition when the String does not Start with "IBAN" but it is still includet in the string.
And for thos situation I also need multiple desicions.
I tried but if the string does not start with "IBAN" it does not return anything it is not getting into the other if statement after the Endif
Maybe someone can help please?
Cheers