Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLServer- Identifier/ AutoInc value and CA
Message
 
 
To
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:
01229865
Views:
20
>>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.

I use his builder all the time, but
1) I currently use VFP8 :(
2) I work with native data
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform