Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MediaCopy method is distribution
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00643976
Message ID:
00644548
Views:
30
>>>>>>BTW, what will directory('a:\temp') return in Windows NT/2000, if there is no disk in the drive in VFP7?
>>>>>
>>>>>Hello, Nadya
>>>>>
>>>>>It will light the floppy's led, then will return .F. No error message shown on screen.
>>>>
>>>>Not if you don't use SetErrorMode() to supress the dialog.
>>>
>>>Hi George,
>>>
>>>I don't have Windows NT/2000 and I don't have VFP7 (only VFP6). Sergey guessed, what this SetErrorMode was incorporated in the DISKSPACE() and DIRECTORY() functions in VFP7 (in VFP6 they give us an error). Could you please verify this statement? Is it noted in VFP7 readme file?
>>>
>>>Thanks in advance.
>>
>>You get a dialog with DIRECTORY() saying that there isn't a disk in the drive and giving you if you want to cancel, try again or continue if you don't have a disk in the drive. I haven't tried SetErrorMode() with this yet. Under Win2K, however, I'd just use the WSH to determine if the drive is ready. It's an integral part of the system.
>
>Ok, so I would add SetErrorMode as shown in the article to make the code 100% bullet proof. I could not 100% rely on WSH existence on the user's machine

I haven't tested yet on VFP7/Win2K, but I would think so. However, as I said, the WSH will be present on Win2K. Worries under that environment. In VFP 6.0, I created a post-setup executable to install it on Win9x boxes if it wasn't present. It's too valuable a tool not to.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform