Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add multiple indexes in foxpro 13

Status
Not open for further replies.

Niki_S

Programmer
Jun 4, 2021
232
LK
Code:
SELECT CI_QTY
INDEX on nStylecode TAG Stylecode
SELECT CI_QTY
INDEX on Style TAG Styles
SELECT CI_QTY
INDEX on cLotName TAG cLotName

SELECT _DelDtl 
SCAN
	IF CI_QTY.nCiQty <>_DelDtl.nCiQty then
		SELECT CI_QTY
		SEEK _DelDtl.nStylecode 
		SELECT CI_QTY
		SEEK _DelDtl.Style 
		SELECT CI_QTY
		SEEK _DelDtl.cLotName 
		
		SELECT _DelDtl 
		replace nCiQty WITH CI_QTY.nCiQty 
	ENDIF 
	
ENDSCAN

When I run my code it shows an error as ".temp is read only." How can I fix this?
Thank You
 
Griff,

When Mike Yearwood (or any other forum member) posts a message that contains offensive, insulting or provocative language, my policy is to ignore it. Don't make the mistake of getting into a slanging match with him. I know several of the regulars here take the same view. I would urge others to do so.

Mike





__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Mike,

I try, but I keep falling for the trap.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top