Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where is a default Field value coming from.
Message
From
21/01/2003 15:30:10
 
 
To
17/01/2003 17:44:23
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00743018
Message ID:
00743901
Views:
22
No luck,
I did a search again using gofish for the primarykey command. It showed up in several places but just in codemine's base classes. The default value is empty in the dbc (when you open the table designer). THere is nothing special about the cursor in the forms dataenvironment. Like I mentioned earlier. I can add a new cursor from that table onto a new form, and it will fill in the default value. So i know there is no custom code on the form, or on the cursor in the DE.

I did some reading in the HTM help file and if lautopk of the cursor is set to .t. then the primarykey will be automatically filled in by setprimarykey.


I looked at the cmcursor class and saw that the lautopk property was set to .t. But this is the default codemine setting? SO now im totally confused. Does codemine always try to populate a primary key field? That doesnt make sense.

The counter only appears after I create a new record. So the primarykey function may be getting called when that happens. Gofish tells me that primarykey command only exists in cmdata.vcx & cmdataa.vcx , I also dont understand why the counter doesnt show up until after I create a new record. It cant be creating the counter, because it still retains the old value.

I have replaced all those base classes with codemines, so any custom code or settings should not be in them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform