General information
Category:
Forms & Form designer
>The VFP doc says that one cannot SETFOCUS in a VALID, RANGE-HIGH/LOW, etc. And yet, I have a form where I accidentally did this and Lo! it works most of the time, but fires an error "cannot setfocus in valid, ..." some of the time. I actually stepped through the code in VALID and watched it pass right over the SETFOCUS.
Arne;
What you will find is that it will continue to behave as you described and then one fine day (no day in particular), it will quit working! I have seen this occur and trust that setfocus and valid (etc.) do not mix. This type of behavior is something I call a “soft failure”. Sometimes code will work (that should not) and some time down the road it will come back to bite you.
Never deliver code of this type to a client or you may end up working at McDonald's in a new career field.
Tom
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only