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:
01312955
Vues:
17
>
>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

You could be in the wrong work are when you do REPLACE. Add IN csrProjSessions.
APPEND BLANK IN csrProjSessions
REPLACE IN csrProjSessions ;
	csrProjSessions.ProjSessionsID WITH -1, ;
	csrProjSessions.GroupID WITH this.Parent.Parent.nSelGroupID ;
	csrProjSessions.VisitID WITH lnSelVisitID ;
	csrProjSessions.ProjSessionsName WITH TRIM(this.Parent.Parent.cSelGroupName) + '-' + TRIM(lcSelVisitName) ;
	csrProjSessions.ChoiceModifiedCol WITH CHOICEADDED 
I would also recomend to use INSERT INTO
INSERT INTO csrProjSessions ;
	(ProjSessions, GroupID, VisitID, ProjSessionsName, ChoiceModifiedCol) ;
	VALUES ( -1, this.Parent.Parent.nSelGroupID, lnSelVisitID, ;
			TRIM(this.Parent.Parent.cSelGroupName) + '-' + TRIM(lcSelVisitName), ;
			CHOICEADDED )
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform