Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force to lost focus
Message
From
07/06/2001 07:36:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/06/2001 07:02:20
Dino Liberale
Ministero Lavori Pubblici
Trieste, Italy
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00516198
Message ID:
00516209
Views:
17
>>>I have a form with a navigation toolbar, when in textbox you insert something and don't press TAB or ENTER or click on a object of form, but you click on a btn of toolbar the pointer moves and inserted data in textbox will be lost.
>>>This is all because the value of textbox goes in the field when lostfocus, with toolbar the focus isn't lost in textbox.
>>>
>>>How to force this process ?
>>>
>>>T.I.A.
>>>
>>>Dino
>>
>>
if type('_screen.activeform.activecontrol')= 'O' and ;
>> !isnull(_screen.activeform.activecontrol)
>> _screen.activeform.activecontrol.valid
>>endif
Cetin
>
>Thenks Cetin,
>
>I try your code, put it in click event of my CmdNext button of toolbar, but the focus remain on textbox and its value doesn't replace the data field. So it doesn't work.

Dino,
It was the skeleton. You might need force the value, tableupdate, refresh etc :
if type('_screen.activeform.activecontrol')= 'O' and ;
 !isnull(_screen.activeform.activecontrol)
 with _screen.activeform.activecontrol
   .value=.value
 endwith
* if CanLeaveRecord
 skip
 _screen.activeform.refresh
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform