Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
anything AT ALL?
#24
Dugor Wrote:
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
i read that same exact thing some where XD. better of safe than stupid i always say lol.

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
this is slow as hell drops the fps down by 20 or more.

Code:
Function IsTryingToMove() As Boolean
    If DirUp Or DirDown Or DirLeft Or DirRight Then IsTryingToMove = True
End Function
you forgot and end if but this is ok =].
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)