Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bizzare behavior in Grid events regarding Work Areas
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00010770
Message ID:
00010773
Views:
30
>I have found in VFP5 the following buggy behavior: RecordSourceType for the grid is Alias. I invoke some code during an event, such as a RightClick on an object in a grid column (e.g., a textbox). For example, the RightClick event might be:
>-
>DO SomeProc in SomeProcFile
>-
>Within SomeProc, the current workarea is saved and a SELECT statement is used to select a different work area. WON'T WORK! VFP changes the work area back to that of the Grid's alias immediately after the SELECT statement is executed.
>-
>However, if in the event code I programmatically change focus from the grid to some other object on the form, then invoke SomeProc as shown above, that everything works fine.
>-
>So, bottom line seems to be: During a grid-related event, VFP won't let you change workareas as long as the grid has focus.
>-
>Would love to know if anybody else has seen this behavior.

Not sure about this but I had lots of problems using alias in VFP 3.0 grids if the workspace was > 225. I had to open all aliases in grids in
workspaces < 225 to get them to work without problems.

HTH
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Reply
Map
View

Click here to load this message in the networking platform