Option Strict

VB Coding issues
Post Reply
CG_
Posts: 6
Joined: Fri Mar 03, 2017 12:25 am

Option Strict

Post by CG_ »

Hello
In the Morph example, a MeshTopol or MeshMods is equaled to an ISection (code below); this does not work when in "Option Strict On" which is the preferred way to go in order to speed up the application. Is there a way to bypass this ?

Code: Select all

Dim iKCSect As ISection = ....
Dim iKCMeshTopol As IKCMeshTopol = iKCSect
Thank you

nickz
Site Admin
Posts: 207
Joined: Fri Jul 26, 2013 3:58 am

Re: Option Strict

Post by nickz »

Hello GC_

Code: Select all

Dim iKCMeshTopol As IKCMeshTopol = CType(iKCSect, IMeshTopol)
Should compile OK

Post Reply