Dim SelFeature As IFeature = Nothing Dim Cursor As ICursor = Nothing SelSet.Search(Nothing, True, Cursor) SelFeature = CType(Cursor.NextRow, IFeature)
By default in VB, casting is automatically done for you when you assign objects to variables. The objects are then automatically casted to the variables' type.This behavior can be influenced by an option line on top of your code file:Option Strict On Option Strict OffWhen on, casting is strict and not automatic.
Option Strict On Option Strict Off
ログインすると、投稿したり、更新をフォローしたりできます。初めてですか?無料アカウントを登録しましょう。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.