Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: matiass emanuel
  Where is matiass emanuel?
 la
 Argentina
 matiass emanuel
 To: Arno Hanssen
  Where is Arno Hanssen?
 Amersfoort
 Netherlands
 Arno Hanssen
 Tags
Subject: RE: deleted mark in a checkbox
Thread ID: 33683 Message ID: 33697 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Forms
Date: Tuesday, December 02, 2003 4:14:10 AM         
   


Thanks a lot Mr. Hanssen

It was exactly what I was searching for!!!
Thanks!

> Dear Matiass,
>
> You should use to line:
> SET DELETED OFF
>
> In this way, deleted records are still shown. When you walk through the records of the table the command DELETED() returns a .T. when the record is marked as deleted and .F. when it is not deleted.
>
> Thisform.mycheckbox.value = DELETED()
>
> In the interactive change of the checkbox, you can put the following code:
>
> SELECT MyTable
> IF Thisform.mycheckbox.value
> DELETE()
> ELSE
> RECALL
> ENDIF
>
> I hope this helps
>
> Kind regards,
> Arno Hanssen
>
>
> > Hi!....
> > I'm trying to put a checkbox in a form, whose value (checked or not) represents the deletion mark of the record..
> > so... if I check it, then the record must be marked as deleted... if I uncheck it, it must be recall'ed...
> >
> > is this possible???
> > what's the best approach??
> >
> > please, helpme...
> >
> > thanks a lot!
> >


ENTIRE THREAD

deleted mark in a checkbox Posted by matiass emanuel @ 12/1/2003 9:36:00 PM
RE: deleted mark in a checkbox Posted by Arno Hanssen @ 12/1/2003 10:21:43 PM
RE: deleted mark in a checkbox Posted by matiass emanuel @ 12/2/2003 4:14:10 AM
RE: deleted mark in a checkbox Posted by matiass emanuel @ 12/2/2003 4:27:46 AM
RE: deleted mark in a checkbox Posted by Ken Blum @ 12/4/2003 6:35:07 PM