ईवेंट्स
17 मार्च, 9 pm - 21 मार्च, 10 am
साथी डेवलपर्स और विशेषज्ञों के साथ वास्तविक दुनिया के उपयोग के मामलों के आधार पर स्केलेबल एआई समाधान बनाने के लिए मीटअप श्रृंखला में शामिल हों।
अभी पंजीकरण करेंयह ब्राउज़र अब समर्थित नहीं है.
नवीनतम सुविधाओं, सुरक्षा अपडेट और तकनीकी सहायता का लाभ लेने के लिए Microsoft Edge में अपग्रेड करें.
Simulates the occurrence of an error.
Error errornumber
errornumber
Required. Can be any valid error number.
The Error
statement is supported for backward compatibility. In new code, especially when creating objects, use the Err
object's Raise
method to generate run-time errors.
If errornumber
is defined, the Error
statement calls the error handler after the properties of the Err
object are assigned the following default values:
Property | Value |
---|---|
Number |
Value specified as argument to Error statement. Can be any valid error number. |
Source |
Name of the current Visual Basic project. |
Description |
String expression corresponding to the return value of the Error function for the specified Number , if this string exists. If the string does not exist, Description contains a zero-length string (""). |
HelpFile |
The fully qualified drive, path, and file name of the appropriate Visual Basic Help file. |
HelpContext |
The appropriate Visual Basic Help file context ID for the error corresponding to the Number property. |
LastDLLError |
Zero. |
If no error handler exists, or if none is enabled, an error message is created and displayed from the Err
object properties.
नोट
Some Visual Basic host applications cannot create objects. See your host application's documentation to determine whether it can create classes and objects.
This example uses the Error
statement to generate error number 11.
On Error Resume Next ' Defer error handling.
Error 11 ' Simulate the "Division by zero" error.
Namespace: Microsoft.VisualBasic
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)
.NET प्रतिक्रिया
.NET एक ओपन सोर्स प्रोजेक्ट है. प्रतिक्रिया प्रदान करने के लिए लिंक का चयन करें:
ईवेंट्स
17 मार्च, 9 pm - 21 मार्च, 10 am
साथी डेवलपर्स और विशेषज्ञों के साथ वास्तविक दुनिया के उपयोग के मामलों के आधार पर स्केलेबल एआई समाधान बनाने के लिए मीटअप श्रृंखला में शामिल हों।
अभी पंजीकरण करें