Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active or Inactive? HUH?
Message
From
05/04/2001 17:02:57
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
05/04/2001 11:26:26
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00492364
Message ID:
00492535
Views:
16
>...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'.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform