11-12-2008, 01:20 PM
Dugor Wrote:i read that same exact thing some where XD. better of safe than stupid i always say lol.GIAKEN Wrote:Also I read somewhere it wasn't good to use commas when dim'ing like this:
Code:Dim n As Long, i As Long
I've never seen that, but I have seen people dim like this thinking it's dimming both variables as long.
Code:Dim n, i As Long
Code:
Public Function FileExist(ByVal FileName As String, Optional RAW As Boolean = False) As Boolean
FileExist = True
If Not RAW Then
If LenB(Dir$(App.Path & "\" & FileName)) = 0 Then FileExist = False
Else
If LenB(Dir$(FileName)) = 0 Then FileExist = False
End If
End Function
Code:
Function IsTryingToMove() As Boolean
If DirUp Or DirDown Or DirLeft Or DirRight Then IsTryingToMove = True
End Function