>
> I can't follow the whole thread (more than 50 messages). have you found the caused yet?
>
Njet!
And I don't think there is anything that could be found. I can tell You in short what happens:
I query two Icons (large and Small). Then I try do do something with their handle, but a command like
? loLarge.Handle
causes the error "Unknown name". However in the debugger, pointing the mouse over it, properly shows the handle.
OK. Could be anything wrong, handle destroyed or something like that (I checked it does not get destroyed).
But now I did one thing
in a new PRG I created a class
define class ABC as custom
PROCEDURE GetHandle(toPicture as Object) as integer
return toPicture.Handle
ENDPROC
enddefine
Not really much logic in there. More a waste of time and resources BUT
if I do
oX = newObject("ABC", "DEF.PRG")
? oX.GetHandle( loLarge )
? loLarge.Handle
The first one works, the second causes an error
You might like to have a look at message #
1048975 There You'll find a link to the latest IconBuddy.vcx with two testprograms and a short description
You will like this ;-)