steve4king
IS-IT--Management
Why is it that the Found() block updates ctra.invoice, but the else block, does not? (unless I select ctra right in front of it)
Code:
SELECT cinv
SET ORDER to cinvuid
SELECT ctra
SET ORDER TO Ctrauid
GO TOP
SCAN
SELECT cinv
SEEK cuid
IF FOUND()
IF ctra.invoice != cinv.iinvoice
REPLACE ctra.invoice WITH cinv.iinvoice
DELETE
ENDIF
ELSE
replace ctra.invoice WITH ' 0' &&doesn't work
ENDIF
ENDSCAN
Code:
..
ELSE
select ctra
replace ctra.invoice with ' 0' &&works
..