main logo
Subject: GetNextLocalPK
Author: Pamela Thalacker
Posted: 2001/03/05 17:17:23
 
View Entire Thread
New Search


Boy, I don't know what cornfield I have been hiding out in but the primary key retrieval apparatus that I have been using low these many months is failing. The disturbing thing is that I don't know why it ever did.

DataBhavior.SetNewPK uses CURSORGETPROP() to retrieve the table underlying the current view. It passes this value to GetNextLocalPK() which uses "!" to parse the DBC name out of it. The only problem is that CURSORGETPROP doesn't return the tablename prefixed with the DBC, so when GetNextLocalPK uses DBGETPROP to retrieve the default value, it gets nowhere.

I just upgraded to W2K and reinstalled everything. Is there a setting that tells VFP to prefix the table with the database? Why did this used to work?
:-) Pamela
pamela /at/ eagle-crest .D.OT com
 
©2001 Pamela Thalacker
<-- Prior Message New Search Next Message -->