Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox setfocus needs to be unset
Message
From
28/01/2005 10:49:55
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00981705
Message ID:
00981745
Views:
68
>I guess THISFORM.ltextbox never gets set to .F.
>>
>> That doesn't work. I still can not get the focus off the textbox.
>>>Beth,
>>>
>>>You should issue NODEFAULT when you want to keep focus only.
>>>
IF THISFORM.ltextbox = .T.
>>>  THISFORM.textbox1.SETFOCUS()
>>>  NODEFAULT
>>>ENDIF
>>>THIS.VALUE = ""
>>>THISFORM.REFRESH()
>>>
Sergey, Beth

PMFJI

But, maybe on "thisform.refresh" she has any command that affect the correctly behavior..

On this case a RETURN will help
procedure ltextbox.valid
IF THISFORM.ltextbox
   NODEFAULT
   THISFORM.textbox1.SETFOCUS()
   return
ENDIF
THIS.VALUE = ""
THISFORM.REFRESH()
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform