Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interactivechange lost focus
Message
From
17/09/2008 07:17:09
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
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:
01348153
Views:
23
Chaim

try a this.setfocus after the messagebox

Agnes

>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).
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform