English
Forum

FehlerMessage intercepting

 
If I this Text walk let:
CompileMarkSeparation
declare disk$
Decimals 0
disk$=STR$(DiskSize("A:\"))
print disk$
case VAL(disk$) = -1:Print "LEER"
waitinpu

...I get with one Diskettenlaufwerk (A: or B: (presupposed, its no floppy disk present)
The beiliegende Message. After Click on moreover becomes then "Leer" displayed.
the happens only whom Diskettenlaufwerken. -
All other LW show same "Leer" on.
How can I these Message suppress or bypass ?

36 kB
Hochgeladen:09/05/08
Downloadcounter125
Download
 
09/05/08  
 




Jörg
Sellmeyer
You can first testing, whether at all what in the drive is. what gives because ChDir "A:\" for a %ioresult-worth back?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/05/08  
 




Dieter
Zornow
@Horst
Versuchs time so
CompileMarkSeparation
testet ob des Laufwerk ansprechbar ist
Def GetVolumeInformation(8) !"KERNEL32","GetVolumeInformationA"

Proc CheckDrive

    Parameters lw$
    Declare result&,lw#

    If len(lw$) = 1

        lw$=lw$ + ":"

    ELSEIF len(lw$) = 2

        lw$=lw$ + ""

    ELSEIF len(lw$) > 3

        lw$ = left$(lw$,3)

    ENDIF

    Return GetVolumeInformation(addr(lw$),0,0,0,0,0,0,0)

EndProc

if checkdrive("A:") = 1

    Print STR$(DiskSize("A:\"))

else

    Print "Leer"

endif

 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/05/08  
 



@Dieter
the was is !
thanks
 
09/05/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

925 Views

Untitledvor 0 min.
Erasmus.Herold11/28/23
H.Brill03/11/17
holmol9305/28/13
Frank Vorholzer01/14/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie