I am currently using the ASPCompiler project to execute VBScript in my application. Below is one scenario that I want to handle. I have a complex object that represents the elements of a page such as TextBox, Lable etc. This object is passed into the ScriptScope
as a variable called fcBusinessEvent and in the script I have some fairly complex code like below:
Set grp = fcBusinessEvent.ObjectGroups.Item(\"0\")
Set grpStock = fcBusinessEvent.ObjectGroups.NamedItem(\"PR1010Stock\")
Set grpNonStock = fcBusinessEvent.ObjectGroups.NamedItem(\"PR1020NonStock\")
grpStock.Visible = False
grpNonStock.Visible = False
grp.Item(\"PR10140StockTotal\").Options.Item(\"Visible\") = False
grp.Item(\"PR10150NonStockTotal\").Options.Item(\"Visible\") = False
when I try executing this code I get error "Can't bind member invoke ObjectGroups.Item(System.Dynamic.DynamicMetaObject).
If you can give me some pointers regarding how to resolve this issue.