>>>They are not the same. _VFP is reference to VFP COM interrface.
>>
>>Ok, thanks. I guess that means it may have a more limited functionality, as indeed in this case it didn't work.
>
>You're missing the point. _Screen and _VFP provide access to different objects. Neither of them is "more limted". The _vfp.ActiveForm is COM reference and _screen.ActiveForm is VFP object reference.
OK. The reason I thought they were interchangeable is that I have seen that I can use both. Actually, about the only case I have used in practice is accessing the .ActiveForm property.
Is it reasonable to expect that accessing the COM interface be slower, because of the COM overhead?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)