Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 接收错误BC30201:应为表达式_Vb.net_Expression - Fatal编程技术网

Vb.net 接收错误BC30201:应为表达式

Vb.net 接收错误BC30201:应为表达式,vb.net,expression,Vb.net,Expression,上面写着 Catch ex As Exception GetTTCFTPini = {"Nothing"} End Try 错误BC30201:应为表达式 您正在使用哪个版本的Vb.Net。您正在使用的数组语法是在VS2010(或可能是2008)中添加的,在旧版本中不起作用。如果是这种情况,请尝试以下方法 GetTTCFTPini = {"Nothing"} GetTTCFTPini = New Object() { "Nothing" }

上面写着

    Catch ex As Exception
        GetTTCFTPini = {"Nothing"}
    End Try
错误BC30201:应为表达式


您正在使用哪个版本的Vb.Net。您正在使用的数组语法是在VS2010(或可能是2008)中添加的,在旧版本中不起作用。如果是这种情况,请尝试以下方法

        GetTTCFTPini = {"Nothing"}
GetTTCFTPini = New Object() { "Nothing" }