Array of Varying Size

How can I initialize the size of an array? and then fill it in the run time

Hi @Farah_halawani
Try
arrayVar=new string(size){}

Hope this might help you.

then how can i fill it dynamically?
assume I know the size

Hi @Farah_halawani

Try this.
image

thank you!

1 Like

Hi @Farah_halawani

Try this inside writeline.
String.Join(“,”,arrayVal)

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