1
In previous releases we could use IF Format(RecRef) <> '' THEN ...
With this the code will only continue if RecRef is initialized, but in the current version (Version: BE Business Central 17.3 (Platform 17.0.20458.20843 + Application 17.3.20469.20933)) the application stop working.
Please solve this problem, or give us a method to test if a variable is undefined.
Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team

Comments

F

I think you can achieve this already by checking RecRef.Number.Something like this:if RecRef.Number = 0 then    RecRef.Open(TableNo);

Category: Development