Thanks Sumit your a life saver to this non programmer (or rather ex-programmer before AX, now business consultant but seems like will have to go back to also being a programmer given the lack of them in the office) :)))))))))))) A huge thanks once again. If ever you are in Singapore let me know :)
_____ From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sumit Loya Sent: Friday, May 16, 2008 2:33 PM To: Axapta-Knowledge-Village@yahoogroups.com Subject: Re: [Axapta-Knowledge-Village] Int64 problem Hi James, Have you initialized ur set with Int64 or Integer. Please check that. Ur code should look like this Set xyz = new Set(Types::Int64); Regards, Sumit On Fri, May 16, 2008 at 11:51 AM, James Flavell <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> com> wrote: Can anyone help me to fix a problem in AX4.0 realted to Int64 and SETs I have some code that does the following: SET xyz; SalesLine salines; ; if (!xyz.add(saleslinerecid)) It gives an error that it was expecting an int and not an Int64 I understand the RecId is now Int64 but do not know how to get a SET object to accept it... Thanks James