Options

EXISTS function

snyktpsnyktp Member Posts: 75
edited 2010-01-12 in NAV Three Tier
Hi,

If i use exists function in NAV 2009, my below codes dont run. If I remove the exists line, it works correctly.
In NAV 4 below codes run without problem. What should I use instead of EXISTS?

IF EXISTS(FORMAT("File Name Resized")) THEN BEGIN
HYPERLINK("File Name Resized");
END;


Thank you

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,096
    Are you running on RTC?
    In the other case, it should work. Maybe the FORMAT is doing something strange. Try IF EXISTS("File Name Resized") THEN BEGIN
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    ara3nara3n Member Posts: 9,255
    EXISTS is run on Service tier and not on the client. So it checks if the file exists on service tier not on the RTC.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.