Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Deleted in Views
Message
De
18/03/2005 15:46:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/03/2005 15:40:02
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00997429
Message ID:
00997434
Vues:
14
I don't know about MM, but for debugging purposes, note that in general, a form with a private dataenvironment (which I assume most frameworks use, since this is the best way to work) will have its own settings for SET DELETED. This means that if you issue SET DELETED ON in the main program, it may not be enough.

You have to issue SET DELETED in the form, before the tables are opened. If tables are opened through code, that would be Form.Load().

Although hiding deleted records should already be part of the framework.

>Now that I have deployed my application, I am noticing that my views are including deleted records, which so far, I don't want. How do I not include them?
>
>Pre VFP7, I'd use set deleted on, but it doesn't seem to be working the way I'm trying it.
>
>If I add a field to a view of "set('deleted') as csetdel", then the value reported back is OFF within my program. If I browse the view from the command line, then csetdel reflects the setting of set deleted. What do I have to do to get my views to use set deleted on? I'm using VFP 7 and MM 8.
>
>I tried setting cdeleted to on in the osessionsetting object of the form, but that didn't do any good. I tried putting set deleted on in the init of the form, and that didn't work. I'll try some other stuff, but thought I'd check here.
>
>Thanks,
>
>June
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform