Options

SETRANGE over SETFILTER

mickukmickuk Member Posts: 47
edited 2006-03-19 in Navision Financials
Hi All,

Is there any main benefit of using Record.SETRANGE(Field [,FromValue] [.ToValue]) over Record.SETFILTER(Field, String, [Value],...)? Would one be correct to assume that SETRANGE() limits your result set to the requested range....for example:

say you have the following records

Entry No. Name
1 Big Bill
2 Roger Hill
3 Badger Pill
4 Nigel Will

If you said SETRANGE("Entry No.", '1', '3') would the effects be a record set that is shown below?

Entry No. Name
1 Big Bill
2 Roger Hill
3 Badger Pill

I presume that the SETFILTER option just applies a filter thus sorting the records that you would have returned from running the function? Probably something that has been mentioned before, however my searches have not been very productive. I have read what is detailed in the "Navision Financials Help" and the functions are described to be very similar. Some clarification as to which is the most productive would be appreciated.

Thanks in advance!

Comments

Sign In or Register to comment.