Option Strict

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

Option Strict

Postby CG_ » Tue Mar 28, 2017 4:18 am

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

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

Re: Option Strict

Postby nickz » Wed Mar 29, 2017 12:40 am

Hello GC_

Code: Select all

Dim iKCMeshTopol As IKCMeshTopol = CType(iKCSect, IMeshTopol)

Should compile OK

Return to “VB .NET”

Who is online

Users browsing this forum: No registered users and 1 guest