Mensaje
De
07/12/2016 04:05:23
 
 
a
07/12/2016 03:44:00
General information
Foro:
Visual FoxPro
Category:
Clases - VCX
Miscellaneous
ID de la conversación:
01644549
ID del mensaje:
01644625
Views:
78
This bug desc rings a bell from a project started in vfp6. I think we ran into this one or something very similar back then...
There was special Errorhandler code for OleControl at least ;-)

>>For an object of class 'Olecontrol', looks like aClass() chokes on the parent class:
>>
>>
>>form = CreateObject('form')
>>form.AddObject('oleClass_2', 'oleClass_2') && a class derived from Olecontrol needs to be instantiated in a visual container
>>
>>? AClass(aa, form.oleClass_2), aa && obtained 1: 'OLECLASS_2', expected 3: 'OLECLASS_2', 'OLECLASS_1', 'OLECONTROL'
>>
>>define class oleClass_2 as oleClass_1
>>enddefine
>>
>>define class oleClass_1 as Olecontrol
>>	oleClass = 'Shell.explorer.2'
>>enddefine
>>
>
>Confirmed, happens with OLECONTROL only.
>
>VFP 9 SP2 (5185)
Previous
Responder
Mapa
Ver