Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid valid does not fire
Message
From
29/04/2009 23:27:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01396480
Message ID:
01397109
Views:
76
>>There is a lot going on. I do not use views or cursors for these grids, they are connected to the table, I do not zap the
>>recordsource and change it. So now what? I have turned off row highlighting and selectOnEntry(easier to see what
>>is happening). The cursor is blinking in the 1st column textbox, I enter a value at the 6th character it moves to the
>>next column without firing an event (if I put a wait, it fires). If I physically click on the textbox the event will fire when
>>the leaving the textbox. I thought gridObj.columns(1).setfocus would be like clicking on the textbox.
>>
>UPDATE:
>I have removed code from all events except the page click and the textbox lostfocus. I put wait windows timeout 1
>in the page.click & page.refresh; grid.valid and grid.when; textbox.lostfocus & textbox when & textbox.keypress.
>The textbox maxlength is 6. When the last character is entered into the textbox, the kepress fies as expected
>but the lostfocus does not. I left arrow back to the textbox and arrow thru the characters, the keypress fies as
>expected and now the lostfocus fires. WHY didn't it fire the first time?

Do you happen to have Set Confirm On? It looks like it needs an additional navigational keypress to leave the textbox. Did it leave it at all after the sixth character was entered?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform