What does SETRANGE function does in the object?
*This post is locked for comments
can you be more clear please?
what is the use of setrange function?
At what condition do u use this function?
the setrange function is a record function used in c/al to filter records.
e.g. lets say you declare variable CustRec with datatype record and subtype Customer.
CustRec.SETRANGE("No.", '100'); filters all records of table customer to that one record, which has in field No. value 100. after that command you'll need a find function to activate that filter like CustRec.FindFirst.
for further details follow
msdn.microsoft.com/.../dd355053(v=nav.70).aspx
msdn.microsoft.com/.../dd338835(v=nav.70).aspx
Please read this Microsoft help
msdn.microsoft.com/.../dd355053.aspx
Please contact in your office for the training.
Hi,
In simple terms, it's used for filtering the data.
SETRANGE("Posting Date",01012015D,31012015D) will filter all the records in this date range.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Saurav.Dhyani 2 Super User 2025 Season 2
Alexander Ermakov 2
RK-25090803-0 1