Tuvia,1/ aw.vcx!awFrm.lostFocusInet() is a centralized method called by all aw.vcx!aw*.lostFocusInet();
IOW a method shared by all controls executing .lostFocus()
2/ We have a bug here: commandbutton has no .Value property.
Until we find a fix, can you just set in your cmd.lostFocus() and/or .Valid()
IF thisForm.wlHTMLgenRETURN .F.ELSE
...ENDIF
thanks,
the .click of a commmanbutton, if when it runs loses focus, caLLS the lostfocus of the form. In the screen shots attached that is what happened. However if the form is running, I can alt-tab away from the browser and the same thing will happen.
![]()
and
![]()
hi Tuvia,
can you post some more information? e.g.
- event sent when cmd.blur() executes
- VFP debugger screenshot when erro occurs
I have a converted app with a problem and I cannot seem to trace the source.
Whenever a command button loses focus, the form.losefocusinet ends up running. This crashes, as lostfocusinet assumes that the oject being passed in is a text object or an object with a .Value property. Since command buttons do not have a .Value, hence the crash on tomember,value being set.
I hate to just change the lostfocusinet code to exclude the commandbutton base class, because this is an issue I should know what is going on.
The button and its class have no code in lostfocus.
Ideas?
-- thn (FoxInCloud)