all groups > dotnet compact framework > october 2006 >
You're in the

dotnet compact framework

group:

Late Binding



Late Binding Hugh Janus
10/31/2006 7:12:59 AM
dotnet compact framework: The following code give me an error telling that "The targeted version
of the .NET Compact Framework does not support latebinding." I am
using VB.Net 2005. What do I need to do to fix this code because I
have not seen this before!

The 2 parts giving the error are:

- PointsSplit(PointLoop)
- PointsSplit(PointLoop + 1))


For PointLoop As Integer = 0 To PointsSplit.GetUpperBound(0) - 1

Dim DiffFound As String = FetchDBValue("Difficulty",
PointsSplit(PointLoop) & "-" & PointsSplit(PointLoop + 1))

If DiffFound > DiffToCheck Then

DiffBool = False
Exit Function

ElseIf DiffFound <= DiffToCheck Then

DiffBool = True

End If

Next PointLoop
Re: Late Binding Daniel Moth
11/3/2006 12:00:00 AM
Make sure the types that the function accepts/returns are the same as the
ones you pass in. Explcitly cast or convert them.

The very first thing to do is turn Option Strict On and keep it on.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

[quoted text, click to view]
AddThis Social Bookmark Button