Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Defined Fields
Message
De
03/09/2003 06:15:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/09/2003 17:59:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00825501
Message ID:
00825590
Vues:
24
>I can't think through how to set up user defined fields, like you see in a Personal Information Manager, such as ACT. I have an address database, and I want the ability for someone to define a field, such as AGE or GROUP SIZE, so that they can enter additional customized information. The fields would be inputed on a form, displayed in reports, and able to select in a query.
>
>I'm using VFP 7 and Visual Promatrix 7. I am not looking for VPM procedures specifically.
>
>Can anyone give me some ideas for doing this?
>
>Mike Bollinger
>Foxpro Hobbyist

User defined fields ? I think in VFP all fields in a table are user defined unless it's a table like scx, vcx, frx etc.

To add a new field you could use 'alter table' command. ie :

alter table myTable ;
add column Age i ;
add column GroupSize i

PS: Age doesn't sound to be a good field. I'd have BirthDate instead.

Or do you mean a calculated field ? If so say for age on form :
Add a textbox and set :
Enabled : .F.
DisabledForeColor : 0,0,0
ControlSource : (year(date()) - year(myTable.Birthdate))

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform