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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only