Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB6
How can I get filesize in vb6 code? I want to compair between file of their size.
Posted 16-Feb-12 22:03pm
S.Sls76594

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Dim ret As Long
 
ret = FileLen("c:\someFile.ext")
 
If ret > 0 Then 'or simply "If ret Then"
    'do your thing...
End If
 
'or

Dim ret As Boolean
 
ret = FileLen("c:\someFile.ext") > 0
 
If ret = True Then '-||-
    'do your thing...
End If
 
Check if the File Exists.
Just Google the question first. Here's the link-> "http://www.vbforums.com/showthread.php?t=498720"
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 340
1 OriginalGriff 210
2 DamithSL 170
3 Kornfeld Eliyahu Peter 130
4 Peter Leow 95
0 OriginalGriff 7,315
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,917
3 Maciej Los 4,866
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 17 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100