Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with CursorRefresh after adding a new record
Message
From
06/02/2007 16:13:28
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01192972
Message ID:
01193000
Views:
19
>>>>>Ok, I'm back to square one with the original problem of AutoInc field <g> Since I'm using VFP8, I save the current ID by reading it from the table in AfterInsert and in my Save method I replace ID with the saved ID in CA.Alias and reset setfldstate for the PK field. Somehow it's not enough and I now get this error message. So, the question goes back - how can I "refresh" my CA AutoInc field in VFP8.
>>>>
>>>>Didn't you decide that AfterInsert is not safe and so you will use 'nextid'?
>>>
>>>I changed my mind <g>, but looks like I just prolonged the agony...
>>
>>Frankly, I read these cursoradapter threads with some level of amusement that so much stuff is needed for rather simple interface. One should wonder how was it possible to write VFP applications before cursoradapter appeared.
>
>They are supposed to make your life easier if you know how to use them... <g>

It looks like a philosophical justification. Being in technical field makes me sceptical to such arguments.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform