RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringsAdapter Class

TStringsAdapter is a helper class used to allow a TStrings object to implement an IStrings interface for use with OLE.

Pascal
TStringsAdapter = class(TAutoIntfObject, IStrings, IStringsAdapter);
C++
class TStringsAdapter : public TAutoIntfObject, public IStrings, public IStringsAdapter;

AxCtrls

Use a strings adapter to adapt a TStrings object so that it supports the IStrings interface. To do so, create the strings adapter by calling GetOleStrings, passing the TStrings object as a parameter. Once the strings adapter is instantiated for a TStrings object, the StringsAdapter property of the TStrings object can be used to interact with the TStrings object through an IStrings interface. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!