FindSet deprecated?!?

JlT
Member Posts: 18
Fired up VS Code with runtime 11.0 and got this little varning. What should we use instead?


0
Answers
-
So it is the use of two parameters that will be deprecated. FindSet(false) doesn't give a warning.0
-
So it is the use of two parameters that will be deprecated. FindSet(false) doesn't give a warning.So it is the use of two parameters that will be deprecated. FindSet(false) doesn't give a warning.
Do you know which parameter was deprecated?
There are no bugs - only undocumented features.0 -
I think UpdateKey is removed because it was not really working anymore anyway.
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-findset-method1 -
@DenSter - Is it so? It use to work in the NAV Version. Not Sure of BC?
Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
If I can recall, UpdateKey in FINDSET() is used when you are modifying a FILTER key in the loop.
e.g.Rec.SETRANGE(Fld1, Value1); IF Rec.FINDSET(TRUE, TRUE) then REPEAT Rec.Fld1 := 'Some other value'; Rec.MODIFY; UNTIL Rec.NEXT = 0;
Does this mean with runtime 11.0, this code will have to be refactored?
0 -
Don't worry it's just they will remove the two optional parameters (forupdate and updatekey). it will be just one parameter (forupdate), so it will be findset(true or false).
if you want to remove those errors you can set something in the app.json file or force install of older AL extension0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions