-
What is the exact value of a floating-point variable?
(Posted Monday, April 19th, 2010)
Floating-point variables do hold exact values, but they often aren’t what you expect. The form in this article can show what the exact value is.
-
Why do I continue getting error messages even after I have written an exception handler?
(Posted Wednesday, June 6th, 2007)
The integrated debugger isn’t just for show.
-
Why doesn’t
Sleep(1)
pause for just one millisecond?(Posted Tuesday, June 5th, 2007)
Read the not-so-fine print: at least.
-
When should I use
FreeAndNil
?(Posted Tuesday, June 20th, 2006)
When you need someone holding your hand.
-
What is an untyped parameter?
(Posted Tuesday, June 20th, 2006)
Duh.
-
Why must the types of actual and formal var parameters be identical?
(Posted Monday, June 12th, 2006)
The type-checker is trying to prevent the disasters that would occur if the types weren’t identical.
-
Why shouldn’t I call
Application.CreateForm
?(Posted Wednesday, June 7th, 2006)
It facilitates bad programming practice, and it can lead to unexpected timing problems while a program starts up.
-
How do I declare a record const?
(Posted Friday, June 2nd, 2006)
Use a parenthesized list of values, and make sure you include the field names.
-
What is a windowless rich-edit control?
(Posted Tuesday, February 14th, 2006)
It’s a control that can draw itself wherever you want it to.
-
What values do fields take when an object is created?
(Posted Friday, January 20th, 2006)
They take their respective all-bits-zero values, as shown in the included table.
-
How can I search the newsgroup archives?
(Posted Friday, January 13th, 2006)
Use this handy Mozilla search plug-in.
-
How do I delete an element from an array?
(Posted Tuesday, January 10th, 2006)
Finalize the doomed item, shift everything down, and clear the last item.
-
Does the compiler treat any types specially?
(Posted Monday, January 9th, 2006)
AnsiString
s,WideString
s, interfaces,Variant
s,OleVariant
s, dynamic arrays, and records and arrays thereof. -
What is the virtual-method table?
(Posted Sunday, January 8th, 2006)
The VMT holds pointers to all a class’s virtual methods, plus some other bookkeeping information.
-
Within my descendant class, why don’t the base object’s fields get initialized?
(Posted Wednesday, August 17th, 2005)
Did you use
inherited
? -
What’s all this?
(Posted Monday, August 1st, 2005)
Welcome to my Web site. I hope you find it useful.
-
Where is everything?
(Posted Thursday, June 2nd, 2005)
Use the form herein to search for articles on this site.
-
Can Delphi use the Microsoft Layer for Unicode?
(Posted Sunday, May 22nd, 2005)
With the units included with this article, your Delphi programs can use MSLU.
-
How come I get flak for posting code I typed into my news or e-mail client?
(Posted Wednesday, April 27th, 2005)
It’s nothing personal; we just don’t trust you to type it correctly.
-
How do I check whether a file name matches a certain wildcard mask?
(Posted Thursday, April 21st, 2005)
Delphi’s
MatchesMask
function can supposedly recognize strings that fit a pattern, but it won’t work in certain circumstances. The Windows API has its own functions that work just as well, though. -
May I use what I find on this Web site?
(Posted Tuesday, April 19th, 2005)
For the code, some rights reserved; for the prose, all rights reserved.
-
Questions, comments, nasty statements?
(Posted Thursday, April 14th, 2005)
Here’s your chance to tell me what’s on your mind.
-
Why does no one respond to messages I post to Borland’s newsgroups?
(Posted Saturday, March 12th, 2005)
Did you post directly to Borland’s server?
-
Why can’t I cast an interface reference to an object reference?
(Posted Tuesday, February 8th, 2005)
Beginners using interfaces often wonder how to get a reference to the implementing object behind an interface reference. One of the first things they try is to type-cast the interface reference back to the class type, but that will always fail. This article gives an in-depth explanation why.
-
If I have an interface reference, how do I get a reference to the implementing object?
(Posted Friday, January 14th, 2005)
Your interface isn’t adequately defined.
-
What is QualityCentral?
(Posted Wednesday, December 22nd, 2004)
QualityCentral is Borland’s system for tracking bugs and feature requests.
-
Why does the compiler warn me about unsafe code?
(Posted Thursday, December 2nd, 2004)
Unless you tell it otherwise, the compiler will think you’re interested in .Net, so it flags code that won’t work anymore.
-
What else gets freed when a dynamic array is freed?
(Posted Friday, November 12th, 2004)
Strings, and interfaces, and other dynamic arrays. (Oh my!)
-
Where can I read about Windows API functions?
(Posted Wednesday, November 10th, 2004)
When it comes to getting documentation about how to write programs for Windows, it pays to get it straight from the horse’s mouth.
-
Where is the My Documents folder?
(Posted Tuesday, November 9th, 2004)
I have no idea; why don’t you ask the operating system?
-
Within an
OnClick
event handler, how can I tell which control was clicked?(Posted Wednesday, November 3rd, 2004)
Look at the sender.
-
How do I put a string onto a stream?
(Posted Wednesday, November 3rd, 2004)
How to store strings in streams depends partly on whether anything else will accompany them. This article includes several ready-to-use routines for loading and saving strings for various purposes.
-
How do I convert a PIDL to a string?
(Posted Tuesday, November 2nd, 2004)
You’ll need to call
ShGetPathFromIDList
, as demonstrated in this article. -
Why is this called a Q&A instead of a FAQ?
(Posted Monday, November 1st, 2004)
My seventh-grade science teacher always used to say, “Be precise!”
Delphi Q&A
A resource for in-depth Delphi answers
-
What else is here?
Published Monday, November 1st, 2004