Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND BLANK to cursor, CANDIDATE INDEX, index violation
Message
From
24/04/2008 14:41:20
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01312895
Message ID:
01312952
Views:
16
>I think what is happening is that after appending the blank record, my REPLACE commands are actually modifying another record, not the blank one. Then, subsequent APPENDs find the blank record, thus the duplicate index.
>
>It has been my assumption that after I issue the APPEND BLANK IN csrProjSessions, the record pointer in csrProjSessions will be pointing to the blank record I have just added. Is that a bad assumption?
>
>Jim

As others have also suggested, skip the append command and use SQL Insert instead. Quicker and safer.
Previous
Reply
Map
View

Click here to load this message in the networking platform