Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Endless loop - need a hand to get out
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Endless loop - need a hand to get out
Miscellaneous
Thread ID:
00706602
Message ID:
00706602
Views:
74
Hi everybody,

Ok, now after I explained my frustration I hope to get some help on the following problem:

I have a grid on a form to type additional mortgage info. E.g. each main sale/mortgage record may have up to 5 additional mortgage records.

In the grid I have a method to validate user's entry. Some code is in BeforeRowColChange, AfterRowColChange, textbox.Valid, Valid method of the grid, etc.

Everything seems to be working now except for the following:

I have a validation, that if Lender is not empty, Mortgage should be not empty too. In addition, user must re-type Amount using separate form.

Now this is that happening: I type amount, re-type it, then click in a control on a page (outside of the grid). I get a message, that Amount could not be empty if Lender is not empty. It looks like the Valid of the grid fires before the valid of grid's column textbox fires, e.g. the value, I typed, have not been written to the table yet, therefore this message is issued.

How should I fix this problem? I suppose, in Grid's Valid event I have to ensure, that valid of ActiveColumn textbox already fired... Can you give me a hint, please?

My manager just came and said, that DataEntry is my first priority, sorry...

Oh, well...
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform