Newsgroup: it.comp.lang.visual-basic
Titolo: [?] vb errors

vorrei far stampare a vb un elenco degli errori. solo che la procedura qui
sotto ne da' solo una parte minima, quella elencata piu' sotto. perche'
salta gli altri ? c'e' un modo di listarli tutti ?
tia, pal
Private Sub Command1_Click()
    On Error GoTo errman
    Dim outnum, outname, j As Long, tmp
    outnum = FreeFile
    outname = App.Path & "\errtxt.txt"
    Open outname For Output As outnum
    For j = 0 To 65535
        Command1.Caption = CStr(j)
        tmp = Error(j)
        If tmp <> "" And tmp <> "Application-defined or object-defined
error" _
            Then Print #outnum, j & Chr(9) & tmp
    Next
    Close #outnum
    Exit Sub
errman:
    Close #outnum
End Sub
-* risultato (vb5sp3) *-
3 Return without GoSub
5 Invalid procedure call or argument
6 Overflow
7 Out of memory
9 Subscript out of range
10 This array is fixed or temporarily locked
11 Division by zero
13 Type mismatch
14 Out of string space
16 Expression too complex
17 Can't perform requested operation
18 User interrupt occurred
20 Resume without error
28 Out of stack space
35 Sub or Function not defined
47 Too many DLL application clients
48 Error in loading DLL
49 Bad DLL calling convention
51 Internal error
52 Bad file name or number
53 File not found
54 Bad file mode
55 File already open
57 Device I/O error
58 File already exists
59 Bad record length
61 Disk full
62 Input past end of file
63 Bad record number
67 Too many files
68 Device unavailable
70 Permission denied
71 Disk not ready
74 Can't rename with different drive
75 Path/File access error
76 Path not found
91 Object variable or With block variable not set
92 For loop not initialized
93 Invalid pattern string
94 Invalid use of Null
96 Unable to sink events of object because the object is already firing
events to the maximum number of event receivers that it supports
97 Can not call friend function on object which is not an instance of
defining class
98 A property or method call cannot include a reference to a private object,
either as an argument or as a return value
321 Invalid file format
322 Can't create necessary temporary file
325 Invalid format in resource file
380 Invalid property value
381 Invalid property array index
382 Set not supported at runtime
383 Set not supported (read-only property)
385 Need property array index
387 Set not permitted
393 Get not supported at runtime
394 Get not supported (write-only property)
422 Property not found
423 Property or method not found
424 Object required
429 ActiveX component can't create object
430 Class doesn't support Automation
432 File name or class name not found during Automation operation
438 Object doesn't support this property or method
440 Automation error
442 Connection to type library or object library for remote process has been
lost. Press OK for dialog to remove reference.
443 Automation object does not have a default value
445 Object doesn't support this action
446 Object doesn't support named arguments
447 Object doesn't support current locale setting
448 Named argument not found
449 Argument not optional
450 Wrong number of arguments or invalid property assignment
451 Object not a collection
452 Invalid ordinal
453 Specified DLL function not found
454 Code resource not found
455 Code resource lock error
457 This key is already associated with an element of this collection
458 Variable uses an Automation type not supported in Visual Basic
459 Object or class does not support the set of events
460 Invalid clipboard format
481 Invalid picture
482 Printer error
735 Can't save file to TEMP
744 Search text not found
746 Replacements too long

 wrote in message
LE4k4.19146$C3.2...@news.infostrada.it...


per futura implementazione?
stai a vedere che ora progettano anche i futuri bugs da aggiungere a vb?
:))))
Paolo


Perchè molti errori sono definiti dai singoli oggetti e non direttamente da
VB.
E questi non riuscirai a stamparli, a meno che, FORSE, tu non aggiunga il
riferimento corretto)
Ciao



Alcuni numeri di errore sono riservati all'applicazione specifica o
all'oggetto specifico.
Ad esempio l'errore "Indice duplicato ..." è tipico di Access e non è
documentato in VB.
--
Bye from WildSkin
ICQ #48778908
--------------------------------------------------------------------------
Sito ufficiale del NG it_comp_lang_visual-basic
http://www.murialdo.it:8000/it_lang_vb/
--------------------------------------------------------------------------

 riferimento corretto)
ci avevo pensato anch'io infatti, e pur non usando nel test vbp alcun
datacontrol o altro ho provato a mettere il rif dao 3.51.
ma il classico 3426 (o 3246, non mi ricordo mai) "azione annullata ecc." non
e' apparso. provero' a inserire anche il controllo ma dubito che l'aria
cambi.
ciao, a.

 wrote in message
| i'd like to get a list of vb errors, but the routine below only lists
some.
| what am i mistaking ?
| tia, pal