Dan Anderson
2008-11-14 19:18:20 UTC
In the example below my program ignores all of the REPLACE commands. It
begins with a blank field. nUnits and nAccurate are both equal to 8. What
would cause it to ignore REPLACE commands?
SELECT 2
USE :UBIquotes:Quotes_new.dbf order tag quotenum
SEEK cQuotenum
REPLACE QUOTES_NEW->VEHICLESACCURATE WITH "xxx"
IF nAccurate = nUnits
REPLACE Quotes_new->VehiclesAccurate WITH "YES"
ENDIF
IF nUnits - nAccurate = 0
REPLACE Quotes_new->VehiclesAccurate WITH "YES"
ENDIF
SET TALK ON
? Quotes_new->quotenum
? nAccurate+" "+nUnits+"
VehiclesAccurate="+Quotes_new->VehiclesAccurate
SET TALK OFF
begins with a blank field. nUnits and nAccurate are both equal to 8. What
would cause it to ignore REPLACE commands?
SELECT 2
USE :UBIquotes:Quotes_new.dbf order tag quotenum
SEEK cQuotenum
REPLACE QUOTES_NEW->VEHICLESACCURATE WITH "xxx"
IF nAccurate = nUnits
REPLACE Quotes_new->VehiclesAccurate WITH "YES"
ENDIF
IF nUnits - nAccurate = 0
REPLACE Quotes_new->VehiclesAccurate WITH "YES"
ENDIF
SET TALK ON
? Quotes_new->quotenum
? nAccurate+" "+nUnits+"
VehiclesAccurate="+Quotes_new->VehiclesAccurate
SET TALK OFF
--
Dan Anderson
UBI .
***@ubinc.com
800-444-4824 ext 128
Dan Anderson
UBI .
***@ubinc.com
800-444-4824 ext 128