Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gremlins doing set deleted off ???
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00580258
Message ID:
00580681
Views:
15
>Hi everybody!
>
>I have a form that pretty much just has a bizobj and a grid.
>
>The bizobj's NoDataOnLoad property is set to .f., which means that the underlying view will be opened normally (without the nodata option).
>
>The problem I'm having is that for some reason when the form is loading, by the time the Bizobj is instantiated, set deleted is set to OFF(!!!!).
>
>As a result the grid shows a number of records that have been deleted.
>
>The way I solved this was by sending the cSessionEnvironment object on the form all the way to the back, so it instantiates BEFORE the bizobj and set deleted has the right setting (ON).
>
>This seems a "patchy" solution to me; especially because since we were kids our moms have always taught us to send our bizobjs to the very back of the forms so they instantiate FIRST.
>
>Is there any setting anywhere in the framework that will set deleted to ON as the default for my application?
>
>THanks!
>
>Alex
>
>PS: VFP7 MM version 6.0b

Actually, the sessionenvironment class should be the first one to instantiate. Whenever you create a bizobj form, the sessionenvrionment class will always be the only class on the form; therfore, it should be the first thing to instantiate.
Previous
Reply
Map
View

Click here to load this message in the networking platform