The code I have is:
var szFilter = "CHA"
var scValueListItem = new ActiveXObject("MFilesAPI.SearchCondition")
scValueListItem.ConditionType = 9
var arrSearchConditions = new ActiveXObject("MFilesAPI.SearchConditions")
I can only late bind to the COM API so do not have access to the types in the root API so have substituted with values.
The line it is falling down on is scValueListItem.Expression.SetValueListItemExpression(2,0); and giving me an error of Type mismatch
Any ideas what could be causing this and what I need to do to correct it?