redsgt
14 years agoOccasional Contributor
Janus GridEX v.3
I have a grid object:
Sys["Process"]("foobar")["WinFormsObject"]("MainForm")["WinFormsObject"]("MdiClient", "")["WinFormsObject"]("BestPrice")["WinFormsObject"]("Gridex1")
I can get to the ["DataSource"] child object, but any descendant deeper than that and I get an "Object required" exception when I run the script.
So,
foo = Sys["Process"]("foobar")["WinFormsObject"]("MainForm")["WinFormsObject"]("MdiClient", "")["WinFormsObject"]("BestPrice")["WinFormsObject"]("Gridex1")["DataSource"];
works, but if I add
bar = foo["Rows"]["Count"];
"bar" returns the exception "Object required" when I try to store it to a variable, even though I can get to it using the object browser.