Receiving error BC30201: Expression expected

16,988

Which version of Vb.Net are you using. The array syntax you are using was added in VS 2010 (or possibly 2008) and won't work on older versions. If that's the case then try the following instead

GetTTCFTPini = New Object() { "Nothing" } 
Share:
16,988
Epicblood
Author by

Epicblood

I work at a startup as a software engineer. #SOreadytohelp

Updated on June 14, 2022

Comments

  • Epicblood
    Epicblood almost 2 years
        Catch ex As Exception
            GetTTCFTPini = {"Nothing"}
        End Try
    

    it says at the

            GetTTCFTPini = {"Nothing"}
    

    error BC30201: Expression expected.