Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleted record shows in my form. It shouldn't
Message
From
25/01/2013 15:18:29
 
 
To
25/01/2013 14:44:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01564108
Message ID:
01564144
Views:
50
>>>>>Simple form, one table.
>>>>>
>>>>>Set delete is on in the init of that form.
>>>>>
>>>>>First record of that table is deleted but is shows in the form.
>>>>>
>>>>>When records other than the first one in that table are deleted they don't appear in the form as expected.
>>>>>
>>>>>Anyone can help me with this weird behavior?
>>>>
>>>>It probably means that you switched SET DELETED ON after you displayed your rows?
>>>
>>>Like I said earlier set delete is in the init of the form
>>
>>I always use SET DELETED ON in the Load of the form (or DE if you use DE). It may be that the grid already got rows at the Init.
>
>I will scrap that form and build another one just to see what happens. Thanks all for the help.

Just my .02 - I set Deleted ON as the first statement that gets executed in any application, and set it off as needed (say, for a form) and set it back on immediately after that need has passed.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Reply
Map
View

Click here to load this message in the networking platform