Tip NAV R2: Go To Definition

Since December 15 NAV 2009 R2 has been released and I'm an immediate enthusiast of the "Go To Definition" functionality! But today I found out that there is at least one situation in which this function does not work.

In this example, I created a function in the Item table called "MyFunction()". Now consider this code:

Item.RESET;
IF Item.FINDFIRST THEN
  Item.MyFunction():

When you select "MyFunction" here and run the "Go To Definition" function, it opens the Item table at the start of MyFunction().

However, when you format your code like this:

WITH Item DO BEGIN
  RESET;
  IF FINDFIRST THEN
    MyFunction():
END;

The function will not pop up!

So, keep this in mind when you're developing in R2!

Update December 23:
I posted this 'feature" as a suggestion on MS Connect. Please vote for it!
https://connect.microsoft.com/dynamicssuggestions/feedback/details/633075/go-to-definition-does-not-work-within-with-do-sections

Comment List
Related
Recommended