|
-
Jun 2nd, 2004, 09:44 PM
#1
Thread Starter
Hyperactive Member
AAHHHHH, help in VB6
I need some one that is willing to go through my code and help me clean it up (e.g. Remove any unnecessary code, or simplify code when able.)
[VBCODE]
Option Explicit
Dim XXX As Porn
Dim Wife As Nag
Private Sub *****_Resize()
On Error Resume Next
Get Viagra
End Sub
[/VBCODE]
-
Jun 2nd, 2004, 10:17 PM
#2
So Unbanned
-
Jun 2nd, 2004, 11:31 PM
#3
Thread Starter
Hyperactive Member
[VBCODE]
Option Explicit
Dim XXX As Porn
Dim Wife As Nag
Private Sub *****_Resize()
On Error Resume Next
Get Viagra
End Sub
[/VBCODE]
-
Jun 3rd, 2004, 09:46 AM
#4
Had a quick look one thing i noticed was you have,
VB Code:
Public Function CheckPath(Path As String) As String
Path = Trim$(Path)
If Right$(Path, 1) = "\" Then
CheckPath = Path
Else
CheckPath = Path & "\"
End If
End Function
VB Code:
Private Sub Form_Load()
Set lnk = New cShellLinkA
sAppPath = App.Path
' in case it's not a root directory
If Right$(sAppPath, 1) <> "\" Then
sAppPath = sAppPath & "\"
End If
Call ListFiles(CheckPath(App.Path) & "Skin\")
End Sub
and,
VB Code:
Private Function NormalizePath(sFolder As String) As String
sFolder = Trim$(sFolder)
If Right$(sFolder, 1) <> "\" Then
sFolder = sFolder & "\"
End If
NormalizePath = sFolder
End Function
Only need one function there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|