Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating current row - current cell problem
Message
From
19/12/2011 11:37:21
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01531359
Message ID:
01531368
Views:
47
>>>Hi everybody,
>>>
>>>I'm calling ValidateCurrentRow method from the Valid and BeforeRowColChange events of the grid. Everything seems to work as I want with one minor problem: suppose, I'm on the particular cell in the grid (the column that requires validation) and I click a button outside the grid after entering a value in that cell, I still get a validation message. So, the valid event of the textbox doesn't happen.
>>>
>>>How can I ensure that the valid method of that cell happened before the validation takes place?
>>>
>>>Thanks in advance.
>>
>>SetFocus to the cell
>
>I don't think you can call SetFocus from the Valid method. Also, can you be more specific, how would I know from the ValidateCurrentRow method (called from Valid or BRCC) which column to set focus to?

You'll have to test whether a BRCC fires the Valid(). If it does not, I don't think the value of the cell will get updated in the controlsource
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform