Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catching error Record is out of Range
Message
From
05/05/2022 06:44:40
 
 
To
04/05/2022 13:46:52
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01684146
Message ID:
01684336
Views:
73
>>Dmitry--I wanted to let you know that I think I've solved my problem. In my case, the textbox in every column in the grid that isn't supposed to accept focus has RETURN .F. in its When method. When I turned on the Event Tracker, I found that ultimately the Valid of the textbox in the column that accepts focus was running and it apparently was calling some code that messed with the cursor under the grid. I wrapped that Valid method so that it wouldn't run in View mode (this app requires users to explicitly put forms into Edit mode), and that appears to have solved this one. Haven't turned it over to the client yet for them to pound on it, but so far, so good.
>>
>>Tamar
>
>Glad to hear you got to the root of the issue.
>Is it true that When and Valid aren't Windows events per se, more like something left over from FoxPro DOS ?

Yes, they're legacy events that FoxPro has had for a long time, but they're also real events that fire and are handled like any others. I don't write new code using When, but this is a conversion of an FPW app. We've written a custom conversion tool that does about 80% of the work in converting forms. In this case, the grid is being created based on FPW InBrowse code and we're leaving the Whens in the columns alone, for now.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform