Using ALTEREDRECORD in QTP
David Morrison - Corporate
dmorrison@mcbrideelectric.com
Fri, 1 Aug 2003 11:10:51 -0700
I'm running PH607F on an iSeries (AS/400). I'm not sure if that matters or not.
Here's my test program, carved out of a much larger one with lots of ITEM statements:
------------
access spo_vendor_master
choose company_number "001", location_number "013", &
vendor_number "GRAY01"
output spo_vendor_master UPDATE
ITEM vendor_zip FINAL vendor_zip + 1
ITEM vendor_maintained_date FINAL SYSDATE &
IF ALTEREDRECORD OF spo_vendor_master
----------
When executed, the test program updates the ZIP code in the vendor master, but doesn't update the maintained date.
1. Shouldn't it? If not, when WOULD you use ALTEREDRECORD in QTP?
2. If it shouldn't, is there an easy alternative?
Thanks.
David Morrison