Posted by jpluimers on 2009/09/04
Posted in .NET, CommandLine, Delphi, Development, Pingback, Prism, Software Development, Stackoverflow, Visual Studio and tools, XML/XSD, XSD | 1 Comment »
Posted by jpluimers on 2009/08/24
At Stackoverflow, user AB asked about Delphi: Parsing a record of unknown structure.
Basically his question came down to iterating over the fields of a record, then writing out the values to some sort of human readable file, and then reading them back in.
His idea was to use INI files, but also needed support for multi-line strings.
I suggested to use classes in stead of records, and published properties in stead of fields, then use the Delphi built-in streaming mechanism to stream to/from Delphi dfm files.
Normally, Delphi uses dfm files (they have been human readable text files since Delphi 6 or so) to store Forms, DataModules and Frames.
But why not use them to store your own components?
Read the rest of this entry »
Posted in Component Development, Delphi, Development, Package Development, Pingback, Software Development, Stackoverflow | 4 Comments »
Posted by jpluimers on 2009/04/27
Quite a while ago, a co-worker asked how to get tot the Instance variable when using a with statement like this:
function TMyForm.ExecuteForm(FormClass: TFormClass): Integer;
begin
with FormClass.Create(self) do
try
Result := ShowModal;
finally
Free;
end;
end;
So I wrote the blog entry below when I started my blog last week, and set the published date to somewhere early May, a week that will be really busy.
Then I found out about the Stackoverflow question Reference object instance created using “with” in Delphi followed by the answer by user ‘Alexander‘ (a really smart Russian guy).
Enough coincidence to publish the blog article earlier than scheduled
Before I explain why I really hate ‘with’, lets show what my co-worker wanted, and my solution: Read the rest of this entry »
Posted in Delphi, Development, Pingback, Software Development, Stackoverflow | 1 Comment »
Posted by jpluimers on 2009/04/24
My German colleague Daniel Magin is keeping track of people going to attend or speak at DelphiLive ‘09.
Please leave a comment on his blog posting to help him assembling the list.
I’ll be arriving on the evening of tuesday, May 12th, and leave in the morning of sunday May 17th (in order to keep the flight costs down, it is wise to include a Saturday/Sunday night stay).
–jeroen
Posted in Conferences, Event, Pingback | Leave a Comment »