How to Address Return Variable/Value

icarus13icarus13 Member Posts: 8
edited 2007-07-31 in NAV Tips & Tricks
Hello,

Just a simple one, when you call a function from a point in your code and provide it with the variables it needs, assuming the function is asked to return a value/variable how do you address this in the code that it returns to.

Cheers :roll:

Comments

  • DenSterDenSter Member Posts: 8,304
    Say the return value is a boolean:
    MyBoolean := MyFunction(MyParameter);
    
    Say it is part of an evaluation:
    IF MyFunction(MyParameter) THEN BEGIN
      //do something
    END ELSE BEGIN
      //do something else
    END;
    
  • krikikriki Member, Moderator Posts: 9,094
    Well, this would be for the Navision-forum, but the reply makes it a valid tip&Trick. =D>
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.