Passing More than one value for a function

sabzamsabzam Member Posts: 1,149
Hi Everybody,

I am calling a function whcih has to return the type and the G/L No or Bank No. Is it possible to send the type parameter by reference so as to get two values?

Comments

  • kapamaroukapamarou Member Posts: 1,152
    Declare the parameters as VAR
  • sabzamsabzam Member Posts: 1,149
    I am passing an option variable as a parameter and for some reason the new value is not being passed over.

    Could anyone kindly let me know what I should do. please note that teh option variable is part of a record..in my case I ma passing salesline.Type
  • TonyHTonyH Member Posts: 223
    Have you set the Parameter as VAR?
  • DenSterDenSter Member Posts: 8,305
    Put your cursor inside the function. Click View/Locals. On the parameters tab, you should see a column called 'VAR'. When you check this for any parameter, it sets it to 'by reference'.
Sign In or Register to comment.