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] "Hugh Janus" <my-junk-account@hotmail.com> wrote in message
news:1162307579.706884.282200@k70g2000cwa.googlegroups.com...
> 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
>