What does this do: TMyClass(AClass.member).Member?
- From: "JamesR" <wizzer90@xxxxxxxxxxx>
- Date: 21 Aug 2006 20:55:37 -0700
Hi
I've come across this sort of code:
TUserData = class
public
FRequestCount: Integer;
end;
.......
begin
.... IntToStr(TUserData(AContext.Data).FRequestCount);
Now, AContext is a class and .Data is a property of type TObject. What
exactly is going on here? I don't understand what
TUserData(AContext.Data) is doing. Type casting this some how? or..?
and then the .FRequestCount?
Never come across this sort of thing before.
Thanks, James.
.
- Follow-Ups:
- Re: What does this do: TMyClass(AClass.member).Member?
- From: alanglloyd@xxxxxxx
- Re: What does this do: TMyClass(AClass.member).Member?
- Prev by Date: Re: Need list of running Apps
- Next by Date: Re: What does this do: TMyClass(AClass.member).Member?
- Previous by thread: Need list of running Apps
- Next by thread: Re: What does this do: TMyClass(AClass.member).Member?
- Index(es):