gchq
Well-known member
- Joined
- Dec 14, 2007
- Messages
- 168
- Programming Experience
- 10+
Perhaps I'm just tired but...
Have this very simple loop
And although I can clearly see in debug that vFormatString is passing string.empty ("") the code still keeps looping!
Any ideas?
Have this very simple loop
VB.NET:
Dim vFormatText As String = "~"
Dim ReturnString As String = ""
Dim vLoop As Integer = 1
Do While vFormatText <> "/" Or vFormatText <> "" Or vFormatText <> "}" Or vStartIndex >= TextString.Length
vFormatText = TextString.Substring(vEndIndex + vLoop, 1)
ReturnString += vFormatText
vStartIndex = vEndIndex + vLoop
vLoop += 1
Loop
vString.Append(Converter(ReturnString))
vStartIndex = vEndIndex + vLoop
vEndIndex = TextString.IndexOf("/", vStartIndex)
And although I can clearly see in debug that vFormatString is passing string.empty ("") the code still keeps looping!
Any ideas?