Re: Focus in TextBox
- From: "Stefan Wuebbe" <stefan.wuebbe@xxxxxx>
- Date: Sun, 8 Apr 2007 16:48:17 +0200
"Miguel" <alguien@xxxxxxxxxxxxx> schrieb im Newsbeitrag
news:eJqgA8XeHHA.1868@xxxxxxxxxxxxxxxxxxxxxxx
Hello:
It wanted help with this situation, I have looked for and proven
throughout and what encounter is the same solution and it does not work to
me. I use a Grid class to which entrance the values to update the table
and I keep the data from a button in the toolbar which calls a method in
the form where instacio grid, but it does not work to me, the value that
entrance is not updated, however if I place a button that does to me the
same within the form if it updates to me. I know that the problem is not
of the method because it works to me well. The solution that they give me
is to do this but in my case it does not work to me:
IF TYPE('THIS.ACTIVECONTROL') = 'O' AND;
! ISNULL(THIS.ACTIVECONTROL) AND;
PEMSTATUS(THIS.ACTIVECONTROL,'SetFocus',5)
THIS.ACTIVECONTROL.SETFOCUS
ENDIF
Hola Miguel,
So the problem is that toolbars, as opposed to a commandButton on
your form, do not move the "focus", thus the
form.grid.column.textbox.Valid()
does not take place, right? If so, I wonder how it does not work.
Do you get an Type('This.ActiveControl")="U" in the debugger? What
do you get for Type("_screen.ActiveForm.ActiveControl")? Does an
alternative "Thisform.yourGrid.SetFocus()" help?
-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------
.
- References:
- Focus in TextBox
- From: Miguel
- Focus in TextBox
- Prev by Date: Focus in TextBox
- Next by Date: Re: Focus in TextBox
- Previous by thread: Focus in TextBox
- Next by thread: Re: Focus in TextBox
- Index(es):
Loading