2009-02-09

EXCEL VBA Array Define & compile error

EXCEL VBA, EXCEL 2003 EN

VBA1:
dim a(), b() as string

call func a

// compile error:
Type mismatch: array or user-defined type expected


VBA2:
dim a() as string
dim b() as string

call func a

// compile success

No comments:

By mostone.Jiang