15 years ago
Difficulty getting property values of a TPanel
I'm creating a C# test for a Connected Application. I'm trying to read the property values of a TPanel object, but am consistently getting the following error:
Delegate 'VarDelegate' does not take 2 arguments
...when I try to run...
var obj = Connect.Aliases["MyProject"]["MyApp"]["MainForm"]["MyTPanel"];
bool result = Connect.aqObject["GetPropertyValue"](obj, "Enabled");
Obviously not verbatim, but these are the objects and the methods I'm using. I've tried several things, including casting the result. I can call GetPropertyValue for Static objects, and call methods on the TPanel.
Calling:
obj["PropertyExists"]("Enabled")
...gives a similar error.
Delegate 'VarDelegate' does not take 2 arguments
...when I try to run...
var obj = Connect.Aliases["MyProject"]["MyApp"]["MainForm"]["MyTPanel"];
bool result = Connect.aqObject["GetPropertyValue"](obj, "Enabled");
Obviously not verbatim, but these are the objects and the methods I'm using. I've tried several things, including casting the result. I can call GetPropertyValue for Static objects, and call methods on the TPanel.
Calling:
obj["PropertyExists"]("Enabled")
...gives a similar error.