E_DPSG
Board Regular
- Joined
- Jul 17, 2008
- Messages
- 82
Okay - This is bothering me. I cant get the value out of my array to convert to a string for a FileExists check.
What am I missing??
Code:
Public Function CheckRatesFile(ByRef FPath As String, ByRef MyArray As Variant) As Boolean
Dim FullPath As String
Dim MyFlag As Boolean
MyFlag = True
For Each Item In MyArray
FullPath = FPath + CStr(MyArray(Item))
If Not FileExists(FullPath) Then
MyFlag = False
End If
Next
CheckRatesFile = Flag
End Function
On the CStr(MyArray(Item)) it gives me a type mismatch error.
Any Suggestions?