Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Inconsistent OLEControl / ActiveX Method Return Type
When calling a method of an ActiveX control (wrapped in an olecontrol) as a relative reference from the command box ( i.e. ? form1.control1.methodname() ) it returns the proper type (numeric / 0 (Zero) to be exact), but returns the empty string when the same method is called within code of a containing custom descended class (about 3 references/containers deep: Custom->Form->OLEControl->ActiveX).
This happens with all calls of a similar nature. I have 3 non-visual activex controls from the same source (all closely related in function as well) on this form.
As I understand vfp, it should always return a numeric (the ActiveX control's documented behavior) no matter the context.
Any ideas of what could be going on vfp wise?
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement