Question : Failed to create back up copy of XML file error while loading and unloading Filezilla

Hello guys,
                      i am seeing this error every-time I try to load filezilla. The error says " failed to create back up copy of XML  file". i am not sure what is that supposed to mean?

Answer : Failed to create back up copy of XML file error while loading and unloading Filezilla

This function should do it.

Put this in your module.

Call it by setting an integer variable:

Dim i as integer
i = CountChars("-","1-1-1-1")
debug.print i
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
Function CountChars(sFind, sString) As Integer

    Dim x As Integer
    Dim nTo As Integer
    Dim nCount As Integer

    For x = 1 To Len(sString)
    
        nTo = InStr(x, sString, sFind)
        If nTo = 0 Then nTo = Len(sString)
        nCount = nCount + 1
        x = nTo
        If x >= Len(sString) Then
            Exit For
        End If
                
    Next x

    CountChars = nCount - 1

End Function
Random Solutions  
 
programming4us programming4us