Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedures not working
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00000686
Message ID:
00000688
Views:
39
Adam

>>In the load method of a form I call a stored procedure
in a database that is part of the form's data environment.<<


You need to find a list of the firing order of events in
VFP. I the Mastering VFP CD there is such a list in the
'Chapt 7: The Object Model PEMs'

You should see that the Form Load event happens before
the DataEnvironment event. So that is why the error.

Try moving your code to the INIT event.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform