Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug? - Select in dbc_AfterOpenTable() causes infinite lo
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00897019
Message ID:
00897031
Views:
14
No, it's not a bug. Each SELECT statement opens new copy of the table (similar to USE AGAIN) and that causes AfterOpenTable() event to fire.

>I am using VFP 8 SP1.
>To duplicate what looks like a bug:
>
>Create a dbc_AfterOpenTable() event procedure.
>Put a SQL SELECT statement in there.
>Select any fields FROM THE TABLE BEING OPENED,
>into any destination (TO SCREEN, INTO CURSOR).
>
>Result:
>    The SELECT statement causes the AfterOpenTable() to call itself infinitely.
>    Eventually FoxPro will give an error.
>
>Isn't this a bug?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform