Fabio Ramirez Posted May 26, 2004 Report Share Posted May 26, 2004 ola, pessoal. Estou tentando mandar o focu para um campo que utiliza a clausula When e nao estou conseguindo. (Estou trabalhando com o voget). Sera que alguem sabe o porque. Qdo eu tiro o when funciona normalmente. Valeu pela atencao. Fabio Quote Link to comment Share on other sites More sharing options...
personal Posted May 26, 2004 Report Share Posted May 26, 2004 Não sei se entendi direito, mas se seu get esta como when(.f.), você terá que primeiro mudar o get para When(.t.) para depois mandar o foco. Oliveira, Sérgio A. PERSONAL - LINS pcspersonal@uol.com.br MSN - sergio@personal.com.br Quote Link to comment Share on other sites More sharing options...
cida Posted May 26, 2004 Report Share Posted May 26, 2004 Oi Fábio tudo bem? Não sei se tem alguma diferença entre o voget e o get, mas verifique se por acaso a condição que você colocou no when não está retornando falso, pois se estiver o focu não vai pra o campo mesmo. Espero ter te ajudado em algo. Beijos Cida - São Paulo. Quote Link to comment Share on other sites More sharing options...
alex2002 Posted May 26, 2004 Report Share Posted May 26, 2004 Olá Fábio, Tente o seguinte: var_when = .t. oget:aevalwhen() oget:refresh() oget:setfocus() Não testei. Um abraço, Alexandre Pereira Quote Link to comment Share on other sites More sharing options...
eajunior Posted May 28, 2004 Report Share Posted May 28, 2004 Ola Fabio, voce pode mudar a condição do when atraves da validação de outro get, mas que tenha efeito sempre de um oGet:Refresh() no get que contem a clausula WHEN Elias Abrão Júnior Fone : (0**19) 3885-3447 São Paulo - SP eajunior.fw@terra.com.br Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.