Epicblood
Epicblood

Reputation: 1177

Receiving error BC30201: Expression expected

    Catch ex As Exception
        GetTTCFTPini = {"Nothing"}
    End Try

it says at the

        GetTTCFTPini = {"Nothing"}

error BC30201: Expression expected.

Upvotes: 2

Views: 18190

Answers (1)

JaredPar
JaredPar

Reputation: 755457

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" } 

Upvotes: 6

Related Questions