Navision Code Unit Functions

Hi all

How do i create my own functions in Navision code unit? I mean something like this.

Vendor(VAR AddrArray : ARRAY [8] OF Text[50];VAR Vend : Record Vendor)

Where do i start?

Well, you just create them the same way you do it in other objects (tables, forms…).

Design mode in the codeunit and View → C/AL Globals → Functions, to define local vars, parameters and everything else in your function just push the Local button.

Was this really your question?

Yeap that ws my Qs. Thanx it hs worked.

If my answer was your solution please click on the “Mark as answer” button of my post, this will set your question as answered and will help other users not to watch your thread. Thanks :slight_smile: