Carlos,
Looks like the compiler is having a hard time recognizing that
wordObj.MeaningCount is a variant:
Try this:
Dim s As String = Str(Variant(wordObj.MeaningCount))
Should get you through the compile. Maybe one of the RS guys can
comment on if this is a bug or a feature of some of the tighter type
checking.
-Brad
On Apr 11, 2006, at 9:28 PM, Carlos M wrote:
I'm starting to move projects created with 2005r4 to 2006r2 and in
some of them code like:
Dim s As String = Str(wordObj.MeaningCount)
Gives the following error on 2006r2:
"There are several items with this name and it is not clear which one
the call refers to."
The error highlights "Str" on the line.
wordObj is an OLEObject and MeaningCount returns an Integer.
If I use instead:
Dim i As Integer = wordObj.MeaningCount
No error happens.
On RB2005r4 it works fine.
Anyone can "decode" that error message or is this a bug?
Carlos
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>