ErrObject.Erl 屬性

定義

取得整數,指出最後執行之陳述式的行數。

public:
 property int Erl { int get(); };
public int Erl { get; }
member this.Erl : int
Public ReadOnly Property Erl As Integer

屬性值

最後一個執行語句的行號。

範例

這個範例會 Erl 使用 屬性來指出行號。

10:     On Error Resume Next  
20:     Err.Raise(60000)  
' Returns 20.  
30:     MsgBox(Erl())  

備註

如果 Visual Basic 沒有遇到行號,則會傳回 0。

適用於

另請參閱