Hello,
in a combobox I want to examine and - if necessary - replace oComboBox:cText
with the correct written Item of oComboBox:aItems.
I use for this the Event-Method OnExit.
METHOD OnExit( oSender, oNextCtl ) CLASS LSEdit
local lOk:=.F.,nPos
nPos:=oSender:FindStringEx(oSender:cText,1)+1
IF lOk:=nPos>0
oSender:cText:=oSender:GetText(nPos)
ELSEIF lOk:=MsgYesNo("'"+oSender:cText+"' ist unbekannt!"+CRLF+;
"Soll der Begriff mit dieser
Schreibweise"+CRLF+;
"in die Gerichtsliste
übernommen werden?","Gerichtsliste")
//...... doing something
//......
ENDIF
RETURN lOk
This is working correctly if the MsgBox will not be called.
In this case, the ComboBox is keeping the focus and the cursor is no more
visible.
What to do?
Regards
Ingo
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
problem with calling MsgBox in Event OnExit-Method
problem with calling MsgBox in Event OnExit-Method
Ingo,
Fixed. We have modified several pieces of code, that affects directly to 3
modules. Please, test it again adding these 3 modules to your project.
--
Regards,
Jose F. Gimenez
Attached files ComboBox.zip (17.7 KB)Â
Fixed. We have modified several pieces of code, that affects directly to 3
modules. Please, test it again adding these 3 modules to your project.
--
Regards,
Jose F. Gimenez
Attached files ComboBox.zip (17.7 KB)Â
problem with calling MsgBox in Event OnExit-Method
Jose,
now it works
Regards
Ingo
"Jose F. Gimenez" <jfgimenez@wanadoo.es> schrieb im Newsbeitrag
news:[email=434e4727@ozsrvnegro.ozlan.local...]434e4727@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> Fixed. We have modified several pieces of code, that affects directly to 3
> modules. Please, test it again adding these 3 modules to your project.
>
>
> --
> Regards,
>
> Jose F. Gimenez
>
>
now it works
Regards
Ingo
"Jose F. Gimenez" <jfgimenez@wanadoo.es> schrieb im Newsbeitrag
news:[email=434e4727@ozsrvnegro.ozlan.local...]434e4727@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> Fixed. We have modified several pieces of code, that affects directly to 3
> modules. Please, test it again adding these 3 modules to your project.
>
>
> --
> Regards,
>
> Jose F. Gimenez
>
>