|
-
Aug 31st, 2000, 10:53 PM
#1
Thread Starter
Frenzied Member
Code:
If Not Dir("c:\dimava.dat", vbNormal Or vbReadOnly Or vbHidden Or _
vbSystem Or vbArchive) = "" Then
Form1.Visible = True
End If
NXSupport - Your one-stop source for computer help
-
Aug 31st, 2000, 11:13 PM
#2
_______
<?>
what are your trying to do
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 31st, 2000, 11:17 PM
#3
New Member
?????
what do you wanna do?
-
Aug 31st, 2000, 11:18 PM
#4
Thread Starter
Frenzied Member
for the record everty button post When that file is there I want the form to be visible so that I can see all the keys presses (the text box)
NXSupport - Your one-stop source for computer help
-
Aug 31st, 2000, 11:27 PM
#5
_______
<?>
it works this way.
Dim MySize
MySize = FileLen("c:\my documents\myfile.txt") ' Returns file length (bytes).
If MySize = "" Then
MsgBox "no file"
Else
MsgBox "FILE"
End If
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 1st, 2000, 12:55 AM
#6
transcendental analytic
HeSaidJoe, you get an error if there's no file, and no file for 0-length files, so using dimivas sample:
Code:
on error resume next
If ""<>Dir("c:\dimava.dat", vbNormal Or vbReadOnly Or vbHidden Or vbSystem Or vbArchive) = "" Then
if not err then Form1.Visible = True
End If
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 1st, 2000, 05:15 AM
#7
When you're using the Or operator on all the flag values (vbNormal, vbHidden and so on) you're actually adding them together.
So the dir function will return an empty string if not all attributes are set on the file.
-
Sep 1st, 2000, 05:52 AM
#8
transcendental analytic
I don't think that's the case Joacim, dir is for listing files, and it won't list for instance hidden files unless you turn that flag on, but the normal files will be listed
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 1st, 2000, 06:26 AM
#9
Yes you're probably right. I'm just tired and confused.
BTW Kedaman
När kommer du över till Sverige nästa gång då?
-
Sep 1st, 2000, 06:51 AM
#10
Frenzied Member
Err. I'm sorry?
När kommer du över till Sverige nästa gång då
I can speak dutch too!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|