How to initialize and create list of variable type as Integer

Hi,

I want to create a list of type integer with some values. When i try to create the same it is throwing an compiler error.

Can anyone please help me to resolve this

Thanks in advance

Hi @Santhi7698

Please try the following expression:

New List(Of Int32) From {5,10,15}

Hope this helps,
Best Regards.

1 Like

Hi @Santhi7698

Initialize the list as below:

New List (of Int32) from {5,10,15}

Hope it helps!!
Regards,

1 Like

Hi @Santhi7698

New List(of int32)from{10,20}

Hope it helps!!

1 Like

Hi @Santhi7698
Can u try this
image

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.