maxfax
maxfax

Reputation: 4315

Delphi: Frame and State of ActionList - Error?

I have an Action List on a Form and a Frame (a unit of a Form is impelemented in the Frame).

I set Form2.General.State:=asSuspended in the Frame, and I have an error: Undeclared identifier: 'asSuspended'.

The code works normally in the Form, but not in the Frame.

Why?

Thanks!!!

Upvotes: 0

Views: 856

Answers (2)

Andreas Rejbrand
Andreas Rejbrand

Reputation: 109138

It seems like you just have to add ActnList to the uses clause of the unit in which the error appears.

Upvotes: 3

David Heffernan
David Heffernan

Reputation: 613531

Add the unit in which asSuspended is defined to the uses clause of the frame unit.

Upvotes: 3

Related Questions