Information.Erl 方法

定義

傳回整數,指出最後執行之陳述式的行數。 唯讀。

public:
 static int Erl();
public static int Erl ();
static member Erl : unit -> int
Public Function Erl () As Integer

傳回

傳回整數,指出最後執行之陳述式的行數。 唯讀。

範例

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

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

備註

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

適用於

另請參閱