Delphi 7では、永続オブジェクトのインスタンスを取得するには、オブジェクト識別子がstringに指定されていますか?文字列内の識別子を指定して、永続オブジェクトのインスタンスを取得します。
function TForm1.GetObject(Identifier: string): TPersistent;
begin
//what to do here?
end;
使用例:
//If I have these declared...
public
MyString: string;
MyStringList: TStringList;
//the function will be used something like this
MyString:=TStringList(GetObject('MyStringList')).Text;
は、事前にありがとうと英語で明確に私の質問を表現することができないために私が謝罪してください。