Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the DefaultValue programmatically
Message
De
11/01/2001 12:05:02
 
 
À
11/01/2001 11:57:29
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00462310
Message ID:
00462316
Vues:
9
>Is there any way of changing a field's DefaultValue programmatically? Some our clients want to default certain fields differently and I'd like to do it through the DBC. Any ideas?

I would have a table of all the fields and their default values. Then, in the default value, try putting a function call (UDF, Stored Procedure, or just a Lookup() call) in there that goes and looks for the field in the table and returns the specified default value (of course you'll need to make the types match).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform