|
-
Jan 23rd, 2015, 09:03 AM
#8
Re: Finding text files on a directory.
 Originally Posted by dilettante
People do seem to like to go nuts though, assuming misery loves company so they drag everyone down into their private Hell of Unicode requirements. Almost nobody ever needs to worry about Unicode file names, ...
The reason why I usually prefer calling the Unicode API equivalent of intrinsic VB6 functions/statements is not because I need to deal with Unicode characters, but because it is faster to call them on modern OSs.
Having said that, I do agree that the OP probably doesn't require Unicode-awareness nor utmost efficiency. In that case, the built-in Dir function should indeed be adequate.
 Originally Posted by bPrice
I saw you guys always use functions with a "$" attached to the end. For another example, I also saw right$, left$ and mid$. I know of their existence of course but never get to know the serious difference!!
Note that in VB6, the Dir function already returns a String (there's no Variant version) so there's really no need to affix the $ type-declaration character.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
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
|