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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.