Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Array property
Sat, Sep 22 2012 4:38 AMPermanent Link

Robert Devine

Hi Tim

I'm testing a third-party Javascript library where one of the classes
has an array property:

TValueArray = array of TTestValue;

external TTestObject = class
public
  constructor Create(); override;
  property categoryField: string read write;
  property dataProvider: TValueArray read write;
end

In my code I have:

....
SetLength(arr, 3);
....
obj.dataProvider := arr;

When I use this I get:

[Error] UnitMain.wbs (137,8): The referenced variable, parameter, or
function dataProvider does not exist

TValueArray is an array of objects, but I've tested with an array of
integers and get the same error. Is this a limitation or am I missing
something?

Cheers, Bob
Mon, Sep 24 2012 12:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bob,

<< When I use this I get:

[Error] UnitMain.wbs (137,8): The referenced variable, parameter, or
function dataProvider does not exist >>

Please send me an example of what you're trying to do and I'll take a look
at what's going on.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Apr 17 2015 6:22 PMPermanent Link

Doug B

I'm having the same issue.  Was there a solution to this problem?

Thanks,
Doug

"Tim Young [Elevate Software]" wrote:

Bob,

<< When I use this I get:

[Error] UnitMain.wbs (137,8): The referenced variable, parameter, or
function dataProvider does not exist >>

Please send me an example of what you're trying to do and I'll take a look
at what's going on.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Apr 18 2015 12:43 AMPermanent Link

Doug B

Please disregard.  It's working as expected, my code was the issue. Wink

Doug
Image