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。

適用於

另請參閱