不再支援 Property Get/Let/Set; 請使用新的 Property 宣告語法

更新:2007 年 11 月

不再支援 Property Get/Let/Set;請使用新的 Property 宣告語法。

宣告屬性 (Property) 的語法已變更。屬性 (Property) 現在是在區塊內定義。

錯誤 ID:BC30808

若要更正這個錯誤

  1. 請在以 Property 關鍵字開頭的程式碼區塊中定義屬性 (Property),並使用 End Property 建構結束屬性 (Property)。

  2. 請使用 Get 關鍵字,以定義屬性 (Property) 區塊中的 Get 屬性 (Property) 程序。並使用 End Get 建構,以結束 Get 屬性 (Property) 程序。

  3. 請使用 Set 關鍵字,以定義屬性 (Property) 區塊中的 Set 屬性 (Property) 程序。並使用 End Set 建構,以結束 Set 屬性 (Property) 程序。

  4. 請針對所有的屬性 (Property) 指派,使用 Set 屬性 (Property) 程序。Let 屬性 (Property) 程序已經不再需要,也不再支援。

請參閱

參考

Property 陳述式

其他資源

Visual Basic 6.0 使用者可以進行的語言變更