Member since: Wednesday, 07 November 2018
Last login: 4 years ago
Profile viewed: 286 views

No Rank
Points: 0

Čáp123 created a new topic ' Data.Win.ADODB - accessing non-public fields' in the forum. 4 years ago


Maybe it's a beginner's question, however..
I want to know how its possible to operate with protected variables, properties etc. , as if they were public?

I am curious about one specific case.
I saw it at Data.Win.ADODB.pas inside of TADOQuery constructor.
Command.CommandTextAlias := 'SQL'; { Do not localize }
where CommandTextAlias is protected property of TADOCommand.

Thanks for your time;