How to instantiate an object of class, with list on C/AL?

undy0602
undy0602 Member Posts: 67
Hello developers,
How to instantiate an object of class, with list on C/AL?
I have VatEntry class that has Stock list. How to put values into List on C/AL.

Regards,
Undy

Answers

  • EvR
    EvR Member Posts: 178
    I'll answer your questions, no need to create a seperate topic.
    I'm sure most everyone has full-time jobs so sometimes it takes some time ;)
  • undy0602
    undy0602 Member Posts: 67
    Okey,
    I`ve waiting for it and searching any solution still.
    Hopes you can help me :)
  • lubost
    lubost Member Posts: 633
    You should declare some variable of DotNet type and select their subtype. In code you have to iterate the list items in FOR..END loop and read each item member into variables.