Copying of current keys

sabzamsabzam Member Posts: 1,149
edited 2013-05-24 in NAV Three Tier
Dear All,

I am transferring a rec to a function. All filters are being copied appropriately but not the current key. How can a key be copied from the parameter to the variable?

Comments

  • vijay_gvijay_g Member Posts: 884
    Have you checked to mark the call by ref in function parameter(i suppose this will be same in called function) ?

    Have you checked the rec var with the CURRENTKEY function?
  • BeliasBelias Member Posts: 2,998
    All filters are being copied appropriately but not the current key
    AFAIK this is not possible, provided that you have flagged the "var" checkbox for your rec variable in the parameter list of the function (as suggested by vijay).
    please check that flag:
    -true: both key and filters are carried from the caller to the called function
    -false: key and filters are NOT carried from the caller to the called function
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • mseifertmseifert Member Posts: 4
    I think the SETVIEW / GETVIEW would solve this:
    ToRec.SETVIEW(FromRec.GETVIEW)
    
    // Morten
Sign In or Register to comment.