Using the Toolkit with Delphi
johnhutch
Posts: 10
I work with Delphi and I am trying to build a Delphi version of Auto Compare.
All is OK until I want to access the Messages the property of Work class. Delphi fails to allow access to this and other (eg Warnings) properties.
My code looks like
WK := Work.Create;
WK.BuildFromDifferences(difs, Opt, true);
msg:= work.messages ;
For I:=0 to msg.count-1 do
AddStringToMemo(msg.Text);
Do you have any suggestions as to why these properties are not available?
All is OK until I want to access the Messages the property of Work class. Delphi fails to allow access to this and other (eg Warnings) properties.
My code looks like
WK := Work.Create;
WK.BuildFromDifferences(difs, Opt, true);
msg:= work.messages ;
For I:=0 to msg.count-1 do
AddStringToMemo(msg.Text);
Do you have any suggestions as to why these properties are not available?
Comments
Sorry I'm not that good with Delphi, but if I can't help I do know some people who can help you out.
Maybe this is something to do with how Delphi handles collections, so have you tried using Item() rather than the indexer? ([])
The problem seems to be getting access to the messages collection. The property is not available.
I would appreciate a contact with some Delphi folk who have experience with this.
regards
John
msg := WK.Messages;
instead of
msg := work.messages;
since I believe Messages is a property of a Work instance, and is not a class property.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
you are correct, I need to use the instance.