If the selection is empty you'll get a warning (2059) not an error. I think there is a difference between them and that's why the errvar stays 0.
Personally I would solve this in another way. First you can calculate if there are any rows available (select count(*)) and if so the use Edit using Hope this helps Tony From: [email protected] [mailto:[email protected]] On Behalf Of J BLAUSTEIN Sent: donderdag 23 december 2010 2:17 To: RBASE-L Mailing List Subject: [RBASE-L] - error var I am using the below code where there is no records available - I assume that the error var would not = 0 - I am using the latest version of 9.0 64 - ??? set error var verr edit usi A9_21ADDRESS where ALASTN contain .vlastname set v verr1 = .verr set err var off if verr1 <> 0 then -- J. Blaustein J Blaustein Associates, Inc. 12 Herrick Drive Lawrence, NY 11559 516-371-3445 FAX 516-345-8009

