Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Initialise object list

Question
Daniel Aguilar · Jul 13, 2021

Initialise object list

How do you initialise a list of objects of a particular type?

I have tried the following code and I get an undefined when I try to insert.

I can do this and it works but I don't know if it is correct.

 

Is there any way to do something like this?

Set a= New list of Accciones()

Thank you.

#ObjectScript #Caché
Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.4 (Build 505_1) Thu May 28 2020 10:12:49 EDT

Source URL:https://community.intersystems.com/post/initialise-object-list