Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active or Inactive? HUH?
Message
De
05/04/2001 17:02:57
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
05/04/2001 11:26:26
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00492364
Message ID:
00492535
Vues:
15
>...but naming it "INACTIVE" instead of "ACTIVE". It would be most user-friendly to show them the text ACTIVE and then a "Y" or "N", rather showing them INACTIVE and then a "Y" or "N".

If I were designing this I would use a logical field with inactive represented as .T. and would call it "Inactive."

As I input the data I would not need to do anything for an active record since the default of a logical field is .F. Then I would specifically have to set it to .T. to inactivate the record.

The code would read something like:
SELECT * FROM MyTable WHERE NOT INACTIVE...

It could be shown onscreen as either a checkbox or text with a "Y" mask.

I guess my mind works the same way as this programmer's and your boss'.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform