Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to do this?
Message
From
13/12/2000 19:05:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
What is the best way to do this?
Miscellaneous
Thread ID:
00453170
Message ID:
00453170
Views:
70
Hi,

In a form there are several codified fields. A typical one is "Sex", which is stored in the table as "M" of "F", but has Male/Female option buttons. Similarly for marital status and others. The common thread is that none of these codifications are stored in related tables but are handled in code.

In FoxPro DOS I used screen variables to hold the radio button number or caption and filled them in a routine that ran after the scatter each time the recno changed. Data was codified back in the SaveIt routine before the GATHER.

I am new to VFP and wonder which is the most practical way to handle this type of simple situations that do not require a separate table. Should I use a form property to hold the option number? Should I do similar codifying/decodifying in similar routines as before? Should I use the Refresh method?

TIA,

Alex
Next
Reply
Map
View

Click here to load this message in the networking platform