public ComArray CreateArray(string arrayTypeString)
{
SetError();
Type type = null;
type = ReflectionUtils.GetTypeFromName(arrayTypeString);
if (type == null)
{
SetError("Invalid type for array: " + arrayTypeString);
return null;
}
ComArray comArray = new ComArray();
// *** Create instance and assign
Array ar = Array.CreateInstance(type, 0);
// *** assign the item passed in
//ar.SetValue(item, 0);
comArray.Instance = ar;
return comArray;
}