Show/Hide Toolbars

XSharp

Untyped arrays are not available in the selected dialect '{0}'

 

This error happens when you use an untyped (VO) array in a dialect that does not support that.

 

// Compile in Core dialect

FUNCTION Test(a AS LONG,b AS LONG) AS OBJECT[]

RETURN {a,b} // error XS9008: Untyped arrays are not available in the selected dialect 'Core'

 

 

The following code will work and will return a types array of objects:

// Compile in Core dialect

FUNCTION Test(a AS LONG,b AS LONG) AS OBJECT[]

RETURN <OBJECT>{a,b}