You can treat codeunits as objects. One codeunit variable can be assigned to another codeunit variable, which creates a new reference to the same codeunit instance. The codeunit variables then use the same set of internal variables.

Expand imageAbout This Walkthrough

Expand imageStory

Expand imageCreating the First Codeunit

Expand imageCreating the Second Codeunit

Expand imageUsing a Single Instance Codeunit

Expand imageSee Also