How to initialize list of strings

while initializing a list of strings i am getting this error please help

Why are you typing that RS on the beginning? Don’t do that. That’s what is causing the error.

Hi @rajyavardhansr ,

Try the below to initialise with values :

new List(Of String) from {"A","B","C"}
1 Like

sorry sir for RS typo, but problem still persists

New List(of string)

not New.List


1 Like

@rajyavardhansr New List(Of String) if you want to make it as string

hi @supermanPunch

thanks a lot sir , pardon i am a new learner committing silly mistakes
thankyou very much

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