Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interactivechange lost focus
Message
From
17/09/2008 07:18:40
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
17/09/2008 07:08:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01348152
Message ID:
01348154
Views:
18
Hi Chaim,

I think that you could to put your code in Valid method and to do a Return .F. when you don't want to get out the control (lost foucs).
Good luck!


>Hi all
>I have textbox (name txtgettype) with the following code in 'interactivechange'.
>
txtgettype.interactivechange code:
>local ctype,cright
>cright=thisform.txthideright.value
>ctype=alltrim(this.value)
>do case
>	case len(ctype)<>4
>		return
>	case int(val(ctype))<>int(val(cright))&&Here the problem
>		*	This.Value=''
>		messagebox('Wrong typing, Try Again Please!',0+16)
>		return
>	case ctype==crigh
>		*do...
>endcase
>
The problem is that I vfp lose the textbox focus in the SECOND case.
>Help please (remember that I dont lose the focus in the first case only in the second).
Erick
Força Sempre!
Strength Always!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform