Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
APPEND BLANK to cursor, CANDIDATE INDEX, index violation
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01312895
Message ID:
01312998
Vues:
16
>>>>Yes, that is what I thought. So, my APPEND BLANK command is followed immediately by a sequence of REPLACE commands to set values for each field of the new record.
>>>>
>>>>I need to step through this more carefully to examine this hypothesis.
>>>
>>>Why do you need more than one REPLACE command? You can update multiple fields with one REPLACE.
>>>Can you post your REPLACE command?
>>
>>Sergey,
>>
>>Here is the set of REPLACE commands that I use to populate the new record.
>>
>>APPEND BLANK IN csrProjSessions
>>REPLACE csrProjSessions.ProjSessionsID WITH -1
>>REPLACE csrProjSessions.GroupID WITH this.Parent.Parent.nSelGroupID
>>REPLACE csrProjSessions.VisitID WITH lnSelVisitID
>>REPLACE csrProjSessions.ProjSessionsName WITH TRIM(this.Parent.Parent.cSelGroupName) + '-' + TRIM(lcSelVisitName)
>>REPLACE csrProjSessions.ChoiceModifiedCol WITH CHOICEADDED
>>
>>
>>Jim
>
>Remove table alias and use just one REPLACE command instead (or INSERT command). It is quicker than multiple commands especially if you have field/table rules.

Naomi,

I decided to use the INSERT INTO SQL command. Seemed to solve all of my problems.

Thanks for taking the time to help out.

Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform