Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DefaultValue
Message
De
17/01/2001 12:04:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
DefaultValue
Divers
Thread ID:
00464751
Message ID:
00464751
Vues:
63
My program fails when I try to add a new record.
The error # is 11
Message: Function argument value, type, or count is invalid
LINE: 99
Code: lcDefaultValue = DBGETPROP(lcBaseTable+”.”+lcPrimaryKey,”Field”, ”DefaultValue”)
Method: onnew
Object: contform1.pgfbizobj.page1.contobj

The program has the correct info as far as lcBaseTable and lcPrimaryKey variables are concerned, but it cannot find the DefaultValue. In the table itself the DefaultValue is newid(). If one append a blank to the table itself the newid() function works fine and offers the next unique id. But the view knows nothing about newid(). Is there a line I can add to the views.prg that will give this information to the view?
Thanks in advance Allan.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform