Take a look at sysCompare class. There are a few variables in this class, one of them must point to the fact whether differences exist or not.
regards harry From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of James Flavell Sent: Monday, October 20, 2008 11:29 PM To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] How to delete VAR layer object using code? Hi everyone, I have a painful task to do. Some bright sprak turned on all the created and modified properties of all tables in the AOT so now every table is in the VAR layer. I want to do an upgrade and having such meaningless info in the VAR is of course going to mean I have to check every table in the code upgrade So I would like some way to turn the created and modified properties on all tables back to the default NO and then after that run auto compare on each table lowest layer versus next lowest layer) and if the result is no differences to then delete the lowest layer (VAR layer) Anyone ever do such through coding or do I have to manually check the hundreds of tables in AX? Thanks James