클래스안에 구조체가 있는데...
그구조체를 private로 선언하고
해당 구조체용 property를 정해서 다른 클래스에서 사용하려고 하면...
[Error] Left side cannot be assigned to
라고 뜹니다..
예제 코드는 다음과 같습니다.
TTest = class
private
A : 구조체;
public
property AProperty : 구조체 read A write A;
end;
테스트 코드
procedure TTesting.procs();
begin
A.구조체멤버 := 123;
end;
입니다... 이유를 모르겠네요 -_-;;
|