Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLServer- Identifier/ AutoInc value and CA
Message
From
01/06/2007 13:26:53
Aman Bains
Jaguar Computers
Jalandhar, India
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01229802
Message ID:
01229863
Views:
12
>That's good, but why the other method didn't work? What exactly was wrong?

I guess the following should tell CA to automatically update the id in the VFP cursor
?"1) Refresh IDENTITY field using [SELECT @@IDENTITY] command"
oCA.InsertCmdRefreshFieldList="f_IDENTITY"
oCA.InsertCmdRefreshCmd="SELECT @@IDENTITY"
I did the following in the builder built class
lAutoRefreshNewRecords= .T.
lUseDefaultRefreshCmd= .F.
cInsertCmdRefreshFieldList= acbalid
_BuildDefaultRefreshCmd method as
TEXT TO THIS.InsertCmdRefreshCmd TEXTMERGE NOSHOW PRETEXT 10
	SELECT @@IDENTITY
ENDTEXT
but I still could not locate the mistake till now.
Have you tried Mark E. McCasland's builder? then you may have solved the issue.
Aman
-------
Lets fly away to the Land where there is Love & Peace
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform