David Higgs
Programmer
I would like to use REPLACE (TEXT...ENDTEXT) to update a Cursor.
I have about 30 Fields to Update, this is a shortened version for test purposes.
I raised a similar question for MySQL Database here [link ][/url] which works ok. I am stuck on how to modify the code to use it to update my cursor. i.e. How do I execute the Code in the TEXT..ENDTEXT String?
Regards,
David.
Recreational Developer / End User of VFP.
I have about 30 Fields to Update, this is a shortened version for test purposes.
Code:
Select curLogbook
TEXT TO lcSQLUpdate TEXTMERGE NOSHOW
Replace COL_Band with UPD_Band, COL_Call with UPD_Callsign, COL_CNTY with UPD_CNTY, COL_Comment with UPD_comment,
COL_CONT with UPD_Cont, COL_CONTACTED_OP with UPD_Contacted_OP, COL_CONTEST_ID with UPD_CONTEST_ID, COL_Country with UPD_Country
FOR COL_Primary_Key = (UPD_Primary_Key)
ENDTEXT
I raised a similar question for MySQL Database here [link ][/url] which works ok. I am stuck on how to modify the code to use it to update my cursor. i.e. How do I execute the Code in the TEXT..ENDTEXT String?
Regards,
David.
Recreational Developer / End User of VFP.