Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid valid does not fire
Message
 
To
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:
01398343
Views:
99
Dragan
Sorry for not responding sooner, other projects to do, but this one is still a problem.
Yes Confirm is ON and the cursor does appear to leave the cell/textbox. The LostFocus code does fire if I click on the textbox first, then press tab or enter.

>>>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?
Extreme Programming = Plan -> Design -> Code -> Test
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform