|
KB Article |
|
|
Mike Prestwood
|
1. 20 Minute Delphi Primer: Displaying Things
This primer is intended for those just getting started in Delphi and focuses on displaying things.
11 years ago, and updated 10 years ago
(2 Comments
, last by Kyler.S )
|
 KB Post
 7857 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
2. A 10 Minute Delphi Console App Quick Start
Create a classic "Hello, World" Windows native code Console App using Delphi. This tutorial is based on Borland Developer Suite 2006 but you can use any version of Delphi you wish. In this tutorial, you will create a classic "Hello, World!" windows console application. A console application is a type of Windows application that has FULL access to the Win32 API, but it's GUI is limited to a DOS-like text window. When Windows starts a console application, it creates a text-mode console window where the program can display text and the user can interact with the program via the keyboard.
(4 Comments
, last by John.S11 )
|
 Article
 225392 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
3. A 10 Minute Delphi for Win32 Quick Start
Create a classic "Hello, World" Windows native code application using Delphi. This tutorial is based on Borland Developer Suite 2006 but you can use any version of Delphi you wish.
11 years ago, and updated 11 years ago
|
 Article
 11485 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
4. A 10 Minute Your First Delphi Class Quick Start
Beginners example of creating and using a class. Early versions of Delphi use the standard OO private, protected, and public visibility specifiers plus add published for RTTI info. Later versions of Delphi add strict private and strict protected for a true OO implementation.
(2 Comments
, last by laquqob.m )
|
 Article
20210 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
5. A New Look At Delphi Exceptions
When you want the exception to be the rule. A technique for handling exceptions in Borland Delphi's Object Pascal.
17 years ago, and updated 17 years ago
|
 Article
 9028 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
6. Advanced Delphi: Resize Drop-down List
To resize the list box of a combobox, you merely need to send the Windows API message: CB_SETDROPPEDWIDTH to the combo box.
11 years ago, and updated 10 years ago
(2 Comments
, last by Alyssa.P )
|
 Article
 7468 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
7. Application.ProcessMessages
I always found the sleep command in ObjectPAL very useful. The following code does about the same thing in Delphi. It makes use of GetTickCount which is a Win32 API call that retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
11 years ago, and updated 11 years ago
(2 Comments
, last by mprestwood )
|
 Code
 13683 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
8. Arrays
Arrays in Object Pascal.
16 years ago, and updated 13 years ago
|
 KB Post
 7135 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
9. Associative Arrays in Delphi/Object Pascal
Although Object Pascal doesn't have a native associative array, many developers just use a TStringList. Others have implemented a true associative array in Object Pascal. Search the Internet for TStringHash and THashedStringList classes for examples.
11 years ago, and updated 10 years ago
|
 Tip
 15194 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
10. Associative Arrays in Delphi/Object Pascal (Use TStringList)
TStringList Example Object Pascal doesn't have a native associative array, but you can use a TStringList the same way. (Alternatively, search the Internet for TStringHash and THashedStringList classes for implementations of a true associative array).
11 years ago, and updated 11 years ago
(7 Comments
, last by Brent.T )
|
 Code
 27644 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
11. Book: Delphi 2007 for Win32 Development Essentials
http://www.lulu.com/content/2064073
(1 Comments
, last by Austin.M )
|
 Link
 6254 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
12. Book: Delphi 2007 Handbook
http://www.lulu.com/content/1069254
|
 Link
 5878 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
13. Borland 2006 New Features Demo
David Intersimone ("David I") of Borland demonstrates the latest versions of the Borland Developer Studio 2006 Product
13 years ago, and updated 9 years ago
|
 KB Post
 4915 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
14. Call a DotNet DLL from Win32 Apps
Can I call a DotNet DLL from my Delphi Win32 application? For example, with Delphi 7 or Delphi 2010?
12 years ago, and updated 9 years ago
|
 FAQ
 19776 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
15. Camel versus Pascal Casing
What is the difference between Camel Casing and Pascal Casing?
11 years ago, and updated 11 years ago
(5 Comments
, last by Heath.N )
|
 FAQ
 20577 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
16. Check screen resolution in Delphi
How do you check screen resolution in Delphi?
17 years ago, and updated 12 years ago
|
 FAQ
 11770 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
17. CodeGear Blogs
http://blogs.codegear.com/
(1 Comments
, last by John.R5 )
|
 Link
 5299 Hits
|
 Pascal and Delphi Coding
|
William Pantoja
|
18. COM Collections
Correctly implementing COM collections.
|
 Article
 8198 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
19. Component to Fix Alt Key Problem in Vista
When run under Vista, your Delphi programs may respond poorly to presses of the Alt key; some of the components on your forms may disappear. Here is a free component that can help.
(7 Comments
, last by aadil.k )
|
 KB Post
 18645 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
20. Components 101: Form Size Limiting
Windows sends the WM_GETMINMAXINFO message when the user tries to resize a window either by clicking the maximize button or dragging the borders of the window. By creating a suitable message-response method, you can specify the minimum and maximum window sizes for that form.
11 years ago, and updated 10 years ago
|
 Article
 9184 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
21. Connection String Builder Component for Delphi
In its IDE, Delphi makes it easy for us to generate correct connection strings for database connections that require them.
Unfortunately, Delphi doesnt offer the same convenience at run-time when our customers need it most!
This article offers a Prestwood exclusive, TConnectionStringBuilder, a non-visual component you can use in your applications to let your users build a connection string at program startup.
You can then store that connection string, for future use, in an INI file or registry key.
12 years ago, and updated 11 years ago
(3 Comments
, last by mprestwood )
|
 KB Post
 18168 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
22. Create Round Windows
Use SetWindowRgn API call to make a round form. The SetWindowRgn function sets the window region of a window. The window region determines the area within the window where the operating system permits drawing. The operating system does not display any portion of a window that lies outside of the window region.
Simply use this function in the FormCreate event:
11 years ago, and updated 11 years ago
|
 Code
 9514 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
23. Creating an application Server with Delphi 2005
The steps for creating an application server with Delphi 2005, steps that were first introduced with Delphi 3.
|
 KB Post
 8016 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
25. Data Execution Prevention - Bug in Delphi 7
Late versions of Windows - and late processors - include a feature called Date Execution Prevention, or DEP. Programs written in Delphi 7 can trigger DEP errors because of a bug in the SysUtils unit. This article describes an unofficial fix.
12 years ago, and updated 11 years ago
(9 Comments
, last by Sam.J )
|
 KB Post
 21182 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
26. DBISAM Database Maintenance Techniques
DBISAM is a fantastic database for Delphi (or C++ Builder) projects. Don't let the name fool you: This database has great SQL support.
Among its many features are the flexibility offered by its database maintenance routines.
12 years ago, and updated 10 years ago
(3 Comments
, last by franco_p )
|
 Article
 14190 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
27. Debugging Tip: ISAPI DLLs and Services
If you've written any ISAPI DLLs, and tried to debug them, you've learned that it isn't exactly a trivial task. This little code snippet can often eliminate much of the pain.
(1 Comments
, last by Anonymous )
|
 KB Post
 9326 Hits
|
 Pascal and Delphi Coding
|
Scott Wehrly
|
28. Dec Delphi UG meeting summary
Meeting summary, info, and download.
|
 News
 4669 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
29. DelForEx: A Delphi Code Formatter
http://www.aew.wur.nl/UK/Delforexp/
|
 Link
 20234 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
30. Delphi 2007 for Win32 Launches!
CodeGear Introduces Delphi for Win32, Providing RAD Development for Windows Vista and AJAX. New RAD Environment Allows Developers to Jump-start Microsoft Windows Vista Applications While Seamlessly Supporting Existing Users.
11 years ago, and updated 11 years ago
|
 News
 4270 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
31. Delphi 2009 Ships!
Embarcadero Technologies unveils Delphi 2009! The next generation of the popular CodeGear rapid application development (RAD) tools for Windows native code development.
11 years ago, and updated 11 years ago
|
 News
 5146 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
32. Delphi 7 Overloaded InputBox functions
Wouldn't it be cool if InputBox could return types other than string? D7's help certainly says it can, but can it really?
14 years ago, and updated 13 years ago
|
 KB Post
 13459 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
33. Delphi Abstraction (abstract, override)
Delphi for Win32 supports abstract class members using the abstract keyword. You can even instantiate instances of a class that contains abstract members. Then you override each abstract member in a descendant class with Override. Delphi does not support setting an entire class as abstract. You can create an abstract class (a class with one or more abstract methods), but there is no way to tell the compiler to not allow the instantiation of the abstract class. Delphi does not support abstract member properties directly. To implement an abstract properity, make use of abstract methods. That is, you can read a GetPropertyX abstract function and write to a SetPropertyX abstract procedure. In effect, creating an abstract property.
11 years ago, and updated 8 years ago
(4 Comments
, last by Uwais.Q )
|
 Code |
 Article |
 25191 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
34. Delphi Acquired by Embarcadero Technologies
CodeGear, Borland's development tools division is being acquired by Embarcadero Technologies.
(1 Comments
, last by mprestwood )
|
 News
 5891 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
35. Delphi Array (x=Array[0..3] of string;)
Delphi supports both static and dynamic arrays.
(2 Comments
, last by Anonymous )
|
 Code |
 KB Post |
20892 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
36. Delphi Assignment (:=)
Delphi uses := for it's assignment operator.
11 years ago, and updated 11 years ago
|
 Code
 7440 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
37. Delphi Associative Array (TStringList Assoc Array)
Object Pascal doesn't have a native associative array, but you can use a TStringList the same way. (Alternatively, search the Internet for TStringHash and THashedStringList classes for implementations of a true associative array).
11 years ago, and updated 10 years ago
(5 Comments
, last by Angela.L2 )
|
 Code
 16010 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
38. Delphi Base Class (TObject)
In Delphi programming language (Object Pascal), all classes ultimately inherit from the base class TObject.
11 years ago, and updated 10 years ago
|
 Code |
 Article |
23951 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
39. Delphi Best Practices 2: Reusable Main Forms
How often have you started a new Delphi project, then spent some time fleshing out the default main form provided by Delphi?
This task only needs to be done once or twice. Delphi then allows us to re-use this work at the start of each new project.
Source code is included.
(3 Comments
, last by Kevin.F2 )
|
 Article
 25781 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
40. Delphi Best Practices I - Handling TForm.OnCloseQuery
In this first installment of a New Knowledge Base Series I'll discuss The TForm.OnCloseQuery Event which too frequently goes unhandled.
11 years ago, and updated 9 years ago
(10 Comments
, last by Mcdonald.L )
|
 Article
 23294 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
41. Delphi Case Sensitivity (No)
Object Pascal is generally not case sensitive.
11 years ago, and updated 10 years ago
(7 Comments
, last by Robert.D )
|
 Code |
 KB Post |
20373 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
42. Delphi Class Helpers (class helper for)
Delphi allows you to extend an existing class without using inheritance. Buggy in 2005 and not officially supported but stable and usable in 2006 and above. You declare a class helper similiar to how you declare a class but use the keywords class helper for.
- You can name a helper anything.
- Helpers have access only to public members of the class.
- You cannot create an object instance directly from a class helper.
- self refers to the class being helped.
10 years ago, and updated 9 years ago
(1 Comments
, last by Leo.M )
|
 Code |
 Article |
26982 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
43. Delphi Class Members (Class)
Object Pascal supports static methods, but not static member fields. For static member fields, use traditional Pascal-like global variables. Since Object Pascal is a hybrid language, you can use global functions and data so the need for class methods is diminished but still useful. Delphi 1-7: All classes in a unit are friendly (see eachother's private members), some developers like to put each class in it's own unit and reserve putting multiple classes in the same unit until they wish to implement friendly classes. Delphi 2005+: New strict keyword allows you to indicate friendly.
11 years ago, and updated 10 years ago
|
 Code
 13278 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
44. Delphi Class..Object (class..end..Create)
Declare your class in the Interface section. Then implement the class in the Implementation section.
11 years ago, and updated 10 years ago
(4 Comments
, last by John_V._Townsen)
|
 Code |
 KB Post |
 18305 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
45. Delphi Code Blocks (begin..end)
Object Pascal requires the semi-colon after the "declaration" part.
11 years ago, and updated 10 years ago
|
 Code
 8566 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
46. Delphi Comments (// or { ... } or (* ... *))
Delphi uses // for a single line comment and both {} and (**) for multiple line comments. Although you can nest different types of multiple line comments, it is recommended that you don't. A special comment. Delphi compiler directives are in the form of {$DIRECTIVE}. Of interest for comments is using the $IFDEF compiler directive to remark out code.
11 years ago, and updated 11 years ago
(16 Comments
, last by Shelly.V )
|
 Code |
 Article |
43116 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
47. Delphi Comparison Operators (=, <>)
Common comparison operators:
= |
equal |
<> |
not equal |
< |
less than |
> |
greater than |
<= |
less than or equal |
>= |
greater than or equal |
10 years ago, and updated 10 years ago
|
 Code |
 KB Post |
 11958 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
48. Delphi Components 101
Be careful who you associate with!
17 years ago, and updated 13 years ago
|
 Article
 6912 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
49. Delphi Constants (Const kPI: Double=3.1459;)
In Delphi, you define constants similar to how you define variables but use the Const keyword instead of the Var keyword. Declare global constants in a unit's interface section and unit constants (scope limited to unit) in the implementation section. Declare local constants above the begin..end block.
11 years ago, and updated 10 years ago
|
 Code |
 KB Post |
15999 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
50. Delphi Constructors (constructor)
In Delphi, use the constructor keyword to signify which method or methods are constructors for a class. It is traditional but not required to use a procedure called Create.
In addition to having multiple named constructors, you can overload constructors.
11 years ago, and updated 10 years ago
(3 Comments
, last by LatonyaH.D.L )
|
 Code |
 KB Post |
17884 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
51. Delphi Custom Routines (procedure, function)
Delphi is a hybrid language so you can create either class methods (functions and procedures) or you can create global functions and procedures. When a function or procedure is part of a class, it is a class method. [function/procedure] RoutineName : ReturnType;
As with C++, your custom routine must come before it's first usage or you have to prototype it in the Interface section.
Note: Contrast Delphi with Delphi Prism which is an OOP language (everything is within a class). Both Delphi and Delphi Prism are based on Object Pascal but implement OOP features differently and have some syntax differences too.
11 years ago, and updated 11 years ago
|
 Code
 9728 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
52. Delphi Deployment Overview
Delphi create native code Windows applications so you can create an EXE with no dependencies that will run on any Windows computer. If you add dependencies (reports, database libraries, DLLs, etc.) use a Windows installer to build an installation program.
D2007 and D2009 are bundled with InstallAware Express CodeGear Edition installer.
|
 Code
9862 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
53. Delphi Destructor (Free or FreeAndNil)
Object Pascal uses a standard virtual destructor named Destroy which is called by the standard Free method. All objects are dynamic, so you need to call MyObject.Free method or the FreeAndNil(MyObject) routine for each object you create.
11 years ago, and updated 10 years ago
(5 Comments
, last by Garland.K )
|
 Code
23194 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
54. Delphi Development Tools
Languages Focus: Development ToolsPrimary development tool(s) used to develop and debug code.
Delphi Development ToolsCodeGear Delphi is the primary tool of choice for most developers but other Object Pascal language development tools do exist and some are quite good.
11 years ago, and updated 10 years ago
|
 Code
 7484 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
55. Delphi Editor Tips and Tricks
Borland Delphi editor tips and tricks.
16 years ago, and updated 9 years ago
|
 KB Post
 13008 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
56. Delphi Empty String Check (length(s) = 0)
Length() or SizeOf() will correctly identify an unassigned string variable or an empty string.
(1 Comments
, last by Uwais.Q )
|
 Code
 17160 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
57. Delphi End of Statement (;)
Languages Focus: End of StatementIn coding languages, common End of statement specifiers include a semicolon and return (others exist too). Also of concern when studying a language is can you put two statements on a single code line and can you break a single statement into two or more code lines.
Delphi End of StatementObject Pascal uses a semicolon ";" as an end of statement specifier and you can put multiple statements on a single line of code and put a single statement on two or more code lines if you wish.
11 years ago, and updated 10 years ago
|
 Code
8032 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
58. Delphi Event Handler
Many objects in Delphi have events you can use to trigger code. For example, when you add a form to your project you have access to the form events such as onCreate, onShow, onHide, onDockDrop, etc. In addition, Delphi offers module level events initialization and finalization sections.
|
 Code
 9069 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
59. Delphi Exception Trapping (try..except, try..finally)
Delphi also offers a try...finally where code will execute in the finally section no matter what. It's common to put a try...except inside a try...finally:
11 years ago, and updated 11 years ago
|
 Code
 9182 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
60. Delphi File Extensions
Common source code file extensions include:
- .BDSPROJ - Project, Borland Developer Studio project file holds compiler options, etc. This is the file you open.
- .DCU - Delphi Compiled Unit file.
- .DFM - Delphi Win32 form file (a text resource file).
- .DPR - Delphi project file. Primary project "source" file.
- .PAS - Delphi unit source file.
11 years ago, and updated 10 years ago
|
 Code |
 KB Post |
 9772 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
61. Delphi for PHP Announced
Delphi for PHP brings RAD productivity benefits to PHP Web developers that Delphi users have enjoyed for years. PHP is the most prominent dynamic Web language today and one of the top 10 programming languages overall. Delphi for PHP is designed to take PHP development to the next-level by making it faster and easier to develop rich, database-driven Web applications.
11 years ago, and updated 11 years ago
|
 News
 4011 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
62. Delphi for Win32 Home Page
http://www.codegear.com/products/delphi/win32
|
 Link
 5277 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
63. Delphi for Win32 Roadmap
http://dn.codegear.com/article/36620
(1 Comments
, last by Jessica.S3 )
|
 Link
 5410 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
64. Delphi Gazette Archive: 1998
Our Delphi Gazette ran for a vew years in the late 90s. This page archives 1998.
|
 KB Post
 7339 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
65. Delphi Gazette, Volumn 1, Issue 11, Nov 1998
Prestwood Delphi Gazette Archive
11 years ago, and updated 11 years ago
|
 KB Post
 7006 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
66. Delphi If Statement (If..Else If..Else)
Notice in the more complete example that the semicolon for the begin..end block after end is not included. That tells the compiler something else is coming (the statement is not finished). Also note the semicolon is missing right before the final "else" statement.
Note: The following example uses floating point literals. In Delphi, to specify a fractional floating point literal between 1 and -1, you preceed the decimal with a 0; otherwise, you will get a compiler error (i.e. .1 + .1 does not work).
11 years ago, and updated 10 years ago
(5 Comments
, last by mprestwood )
|
 Code
 27016 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
67. Delphi Inheritance (=class(ParentClass))
In Delphi, you use the class keyword followed by the parent class in parens. If you leave out the parent class, your class inherits from TObject.
11 years ago, and updated 10 years ago
|
 Code |
 KB Post |
27054 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
68. Delphi Inheritance-Multiple (Not Supported)
Delphi does not support multiple implementation inheritance. Each class can have only one parent class (a single inheritance path). In Delphi, you can use multiple interface usage to design in a multiple class way horizontally in a class hierarchy.
11 years ago, and updated 10 years ago
|
 Code
 6181 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
69. Delphi Inline Code (asm)
In Delphi, you can inline assembler code using the asm keyword.
|
 Code
 9631 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
70. Delphi Inlining (Inline)
Delphi introduced developer defined function and procedure inlining with Delphi 2005. Use the inline keyword to tell the compiler to inline a routine. Since Delphi will always inline the routine, make sure you test for speed because inlining a routine can lead to slower code under some circumstances.
(3 Comments
, last by Lucinda.H )
|
 Code
16286 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
71. Delphi Instance Counter
Implement static member data in Delphi with variables declared in the implementation section (unit scope). Increment and decrement variable in constructor and destructor. Then use a class function to surface the variable's value publicly.
11 years ago, and updated 11 years ago
|
 KB Post
 15308 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
72. Delphi Interfaces (IInterface, TInterfacedObject)
You specify an interface in the type block just like you do for a class but you use the interface keywoard instead of the class keyword and in the interfaces section only. Since interfaces, by definition, do not have any implementation details, all you do is specifiy it in the type block.
11 years ago, and updated 10 years ago
|
 Code |
 Article |
 24877 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
73. Delphi LeftStr
Delphi LeftStr
|
 Code
 10439 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
74. Delphi Literals (apostrophe)
Literals are single quoted (the apostrophe) as in 'Prestwood'. If you need to embed an apostrophe use two apostrophies in a row.
11 years ago, and updated 10 years ago
|
 Code
15183 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
75. Delphi Logical Operators
Delphi logical operators:
and |
and, as in this and that |
or |
or, as in this or that |
not |
Not, as in Not This |
xor |
either or, as in this or that but not both |
(1 Comments
, last by james.l2 )
|
 Code
15145 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
76. Delphi Member Events
In Delphi, member events are essentially properties of the type method pointer.
|
 Code
 7493 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
77. Delphi Member Field
In Delphi, it is common to start all member fields with "F" as in FName and FAge. You can initialize the value of member fields. Delphi member fields do not support static data. The workaround is to use the hybrid nature of Delphi and use a unit variable (a variable declared in the implementation section of a unit).
11 years ago, and updated 10 years ago
|
 Code
 8962 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
78. Delphi Member Method (procedure, function)
Delphi uses the keywords procedure and function. A procedure does not return a value and a function does.
11 years ago, and updated 10 years ago
|
 Code
 8019 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
79. Delphi Member Modifiers
Specify Delphi member modifiers as follows:
reintroduce; overload; [binding modifier]; [calling convention]; abstract; [warning]
The binding modifiers are virtual, dynamic, or override. The calling conventions are register, pascal, cdecl, stdcall, or safecall. The warnings are platform, deprecated, or library. Additional directives include reintroduce, abstract, class, static, overload, and message.
11 years ago, and updated 10 years ago
|
 Code |
 Article |
11270 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
80. Delphi Member Property (property..read..write)
Delphi uses a special property keyword to both get and set the values of properties. The read and write keywords are used to get and set the value of the property directly or through an accessor method. For a read-only property, leave out the write portion of the declaration. You can give properties any visibility you wish (private, protected, etc). It is common in Delphi to start member fields with "F" ("FName" in our example) and drop the "F" with properties that manage member fields ("Name" in our example).
11 years ago, and updated 9 years ago
(5 Comments
, last by Chatlie12.m )
|
 Code
 13740 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
81. Delphi Member Visibility
Up until D2005, private and protected were not implemented strictly. Starting with D2005, a traditional strict versions of OOP are supported using the strict keyword. OO purist will want you to use strict private over private and strict protected over protected. I suggest you follow that advice until you both fully understand the differences and have a specific need. Delphi offers a special published specifier which is the same as public members but runtime type information (RTTI) is generated.
11 years ago, and updated 10 years ago
|
 Code |
 Article |
36009 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
82. Delphi Module
A unit. A unit is defined in its own source file (a .PAS file) that contains types (including classes), constants, variables, and routines (functions and procedures). Each unit begins with unit UnitName; where UnitName must match the filename (minus the .PAS extension). The .PAS unit files are compiled into Delphi Compiled Units with a .DCU extension. A Delphi program is constructed from units. Specifically, the .DCU files are linked into your application. The Delphi compiler is very fast because it only recompiles units that have changed. You can force Delphi to recompile all units with a build all.
|
 Definition
 10325 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
83. Delphi Overloading (overload)
Object Pascal
- Operator - Yes. But not Pascal.
- Method - Yes.
11 years ago, and updated 10 years ago
|
 Code |
 Article |
 22554 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
84. Delphi Overriding (virtual, override)
In Delphi, you specify a virtual method with the virtual keyword in a parent class and replace it in a descendant class using the override keyword. Call Inherited in the descendant method to execute the code in the parent method.
10 years ago, and updated 9 years ago
(2 Comments
, last by Anonymous )
|
 Code |
 Article |
 24467 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
85. Delphi Overview and History
Language Overview: Delphi programming language is a type-safe language consisting of hybrid traditional Pascal and OOP features. You code either in a traditional approach using functions, procedures, and global data, or you code using an OOP approach, or a mixture of both.
Target Platforms: Delphi for Win32 is most suitable for creating native code Win32 applications that run on Microsoft Windows.
11 years ago, and updated 10 years ago
|
 Code
 6816 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
86. Delphi Parameters (var, const)
Object Pascal allows parameters of the same type to be listed together, separated by commas, and followed with a single data type (more params of different data types can follow, after a semi-colon). The default for parameters is by value. For by reference, add var in front of the parameter. Object Pascal also offers constant parameters where you add const in front of the parameter. A constant parameter is like a local constant or read-only parameter the compiler can optimize. You cannot assign a value to a constant parameter, nor can you pass one as a var parameter to another routine.
11 years ago, and updated 10 years ago
|
 Code |
 Article |
20438 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
87. Delphi Pointers
Although pointer data types in Delphi coding are less important and not required for most general coding, Delphi fully supports developer defined pointers. Use a carrot (^) to declare a pointer data type. Use the @ operator or Addr function to return the current address of a variable.
|
 Code
 9775 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
88. Delphi Polymorphism
Delphi supports the following types of polymorphism:
(2 Comments
, last by Macy.L )
|
 Code
 13319 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
89. Delphi Report Tools Overview
Rave Reports comes closest to a Delphi standard now but historically there has been no real standard in Delphi development. Do-it-yourself developers sometimes like to use TPrinter for very simple reports. ReportSmith was bundled with the first few versions of Delphi.
Delphi has offered many embedded VCL component report options. Quick Reports has been a part of Delphi since Delphi 2.0 and has been the default report writer for many Delphi developers. Ace Reporter, ReportBuilder and Rave Reports are also very popular. During the time of Kylix, FastReports was popular because of it's cross-platform nature.
11 years ago, and updated 10 years ago
(3 Comments
, last by Uwais.Q )
|
 Code |
 KB Post |
 28633 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
90. Delphi Sealed class (sealed, final)
With Delphi, use the sealed keyword to prevent a class from being inherited from and use the final keyword to prevent a method from being overridden.
11 years ago, and updated 10 years ago
(1 Comments
, last by Uwais.Q )
|
 Code
17231 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
91. Delphi Self Keyword (Self)
Within the implementation of a method, the identifier Self references the object in which the method is called. The Self variable is an implicit parameter for each object method. A method can use this variable to refer to its owning class.
|
 Code
 11776 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
92. Delphi String Concatenation (+)
Use the + operator to concatenate two strings. Use IntToStr to convert an integer to a string and FloatToStr to convert a floating point number to a string.
11 years ago, and updated 10 years ago
|
 Code
 7547 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
95. Delphi Unary Operators
An operation with only one operand (a single input). In Object Pascal, a unary operator always precedes its operand (for example, -B), except for ^, which follows its operand (for example, P^). The Delphi unary operators are +, -, and ^ (pointer).
The TYPE operator is also a unary operator and is�evaluated at compile time. The TYPE operator returns the size in bytes of the operand,
11 years ago, and updated 10 years ago
|
 Code
 13675 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
96. Delphi Variables (var x: Integer = 0;)
Declare global variables in the interface section of a unit, variables declared within the implementation section (but not within a method) have a scope limited to the unit. You declare local variables in a var block outside (above) your begin..end code block. You cannot declare variables in-line (inside begin..end). You can initialize global and unit variables but you cannot initialize local variables. Delphi offers many variable types. Some common variable types include String, WideString, PChar, Integer, Boolean, Single, Double, Pointer, and Variant.
11 years ago, and updated 10 years ago
(1 Comments
, last by Peoiine.X )
|
 Code |
 KB Post |
24320 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
97. Delphi XE Tour in Sacramento
RAD Studio XE Tour - SACRAMENTO, CA. Free Pizza and soda!!!! Sponsored by Prestwood IT Solutions - www.prestwood.com
(1 Comments
, last by lowster11 )
|
 News
 6362 Hits
|
 Pascal and Delphi Coding
|
Scott Wehrly
|
98. Delphi: Encryption of data fields
This article discusses the reasons and methods for encrypting data fields in Delphi.
(1 Comments
, last by Anonymous )
|
 KB Post
 11559 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
99. Delphi: Windows Shell Extensions
How to add functionality to the existing Windowsâ„¢ shell.
16 years ago, and updated 12 years ago
|
 Article
 16782 Hits
|
 Pascal and Delphi Coding
|
ermohan_rp
|
100. DEP issues in delphi application
In my application delphi6 . its working fine but while selecting Turn on DEP for all programs an services except those i select. this option in My computer -- Advance option -- choose the tab Data Execution Prevention.
|
 KB Post
 5956 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
101. Detecting Windows SafeMode
Use Windows API GetSystemMetrics with SM_CLEANBOOT parameter to determine how Windows was started.
11 years ago, and updated 10 years ago
|
 KB Post
 5912 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
104. Dr. Bob 42
http://www.drbob42.com/
|
 Link
 7918 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
105. Electronics Corner: Coding for 13 and 26-Bit Values
The world of electronics is a fascinating place. Thousands of devices are available as tiny integrated circuits that can do truly amazing things. Some depend upon an external input to "program" them - or change their outputs.
Here we explore one interesting aspect of dealing with these gadgets, some fast, low-level math routines that deal in unusual numbers of bits.
11 years ago, and updated 11 years ago
|
 Article
 6745 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
106. Embarcadero Technologies
http://www.embarcadero.com/
|
 Link
 4875 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
108. Extracting Plain Text From HTML
HTML is great. Sometimes, though, we need to get at just the embedded plain text.
13 years ago, and updated 11 years ago
(3 Comments
, last by alana.b )
|
 Download
 24709 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
109. Get NIC MAC Address
This code snippet shows you how to get your NIC MAC address using Borland Delphi.
16 years ago, and updated 9 years ago
(4 Comments
, last by Wes )
|
 KB Post
 34598 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
110. Get the XP Look in Older Versions of Delphi
Windows XP incorporates a "theme manager," and includes a newer version of comctl32.dll. Together, they help produce the unique XP Look. Later versions of Delphi are equipped to take advangage of this. But what if you have to maintain a Delph 5 application, and would like to spruce it up to look like a real XP program?
12 years ago, and updated 11 years ago
|
 Article
 9793 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
111. Getting locates to work on a non-key field with a SQL Server Table using filters
A "simple" procedure that worked fine in BDE (use a TTable component attached to a table with a numeric primary key field, a string field not in the primary key, and a third field that's filtered on, use the .Locate() call to perform an incremental search on the string field) was failing using TADOTable and SQL Server. This article describes how I worked around the issue.
|
 Article
 7324 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
112. GExperts
http://www.gexperts.org/
|
 Link
 8026 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
115. Insert GUID Into Source Code
To insert a GUID into code using the Delphi Editor, use Control + Shift + G. ['{BB45987C-0552-415F-A439-636A87E9F4E2}']
However, if you are using either the Visual Studio or Visual Basic key mapping emulation, use Control + Alt + G.
|
 Tip
 9526 Hits
|
 Pascal and Delphi Coding
|
Scott Wehrly
|
116. Large Fonts and Windows Controls
This topic discusses the issues surrounding Delphi forms running on a desktop with large fonts enabled.
16 years ago, and updated 16 years ago
(2 Comments
, last by Anonymous )
|
 KB Post
 30287 Hits
|
 Pascal and Delphi Coding
|
narayana
|
117. MAC address ( Ethernet address )
I have seen many people trying to find a way to get the real physical MAC adddress. Here is one way that works just fine.
13 years ago, and updated 13 years ago
|
 KB Post
 6925 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
118. Magazine: Blaise Pascal
http://www.blaisepascal.eu/
|
 Link
 5816 Hits
|
 Pascal and Delphi Coding
|
Daniel Kram
|
120. Modified Preorder Tree Traversal Algorithm
I needed a way to show a hierarchical structure.
What most were saying, was the, Modified Preorder Tree Traversal Algorithm, was a preferred way of doing hierarchical sets.
I thought I would share the code with you.
(2 Comments
, last by mprestwood )
|
 Article
 11669 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
121. Native Code versus Managed .Net Code
What are the benefits of Win32/64 native code such as in Delphi over .Net?
11 years ago, and updated 9 years ago
(3 Comments
, last by mtiede )
|
 FAQ
 10698 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
122. New DevExpress Updates Now Available
List of releases available as part of the newest update of Express Install, v1.36.
|
 News
 5018 Hits
|
 Pascal and Delphi Coding
|
Daniel Kram
|
124. One Recommended way of writing IF/End IF statements
Format the IF/Endif for easy reading. I have found this to be easy to read and follow: if ( (something = somethingelse) and (x = y) and (z = a) ) then begin .. end;
To indent the structure and line up the parenthesis makes it, I feel, much easier to read.
11 years ago, and updated 9 years ago
(7 Comments
, last by Earlina.m )
|
 Tip
 12039 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
125. Pascal and PChar Strings
Using Pascal and PChar strings in Delphi.
16 years ago, and updated 13 years ago
(1 Comments
)
|
 KB Post
 11691 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
126. Prestwood and Delphi 9 (Delphi 2005)
Prestwood enthusiastically switched to Delphi 2005 when it was released. Now we have just as enthusiastically moved away from it. While it has intriguing features that are very hard to live without, the stability issues with Delphi 2005, even with the 3 later maintenance releases applied, make it impossible to recommend for production work.
Prestwood software STRONGLY recommends use of either Delphi 7, or Delphi 2006.
13 years ago, and updated 11 years ago
|
 KB Post
 4307 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
127. Prestwood Sponsors RAD Studio 2010 Sacramento Tour Stop!
Prestwood Software is sponsoring the Technology is moving fast. During this free two-hour technical seminar, you'll learn the secrets to getting the most out of RAD Studio 2010 and new Windows technologies. You'll get a firsthand look at new capabilities that will make you more productive and successful with Delphi--, C++Builder--, Delphi Prism-- and Embarcadero-- RAD Studio 2010.
RAD Studio/Delphi 2010 Sacramento Tour Stop! Wednesday, December 2, 2009 6:00PM - 8:00PM
New Horizons of Sacramento 1750 Creekside Oaks Drive, Suite 150 Sacramento, CA 95833
Sponsored by:

10 years ago, and updated 10 years ago
|
 News
 5587 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
128. Private versus Strict Private
What is the difference between private and strict private?
(2 Comments
, last by Martha.B )
|
 FAQ
 14381 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
129. Program or unit recursively uses itself
You cannot create a Delphi unit with the same name as is already in use. For example, do not create a buttons.pas unit for your application because the VCL already has a Buttons.pas unit. The solution is to rename your unit.
(3 Comments
, last by Vincent.D )
|
 Error
 20432 Hits
|
 Pascal and Delphi Coding
|
Scott Wehrly
|
130. Proper Use of
Proper use of dynamically created components that doesn't break the built-in garbage collection scheme.
16 years ago, and updated 11 years ago
|
 KB Post
 5443 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
131. Protected versus Strict Protected
What is the difference between Protected and Strict Protected visibility?
(1 Comments
, last by Uwais.Q )
|
 FAQ
 12432 Hits
|
 Pascal and Delphi Coding
|
Daniel Kram
|
132. Quoting Your String (QuotedStr and AnsiQuotedStr)
When you need to put quotes, single or double, or even another character, around a string there are two methods to lend a hand: QuotedStr and AnsiQuotedStr. QuotedStr will put single (') quotes around your string or variable. The other function you can call is AnsiQuotedStr which adds double quotes.
(1 Comments
, last by Uwais.Q )
|
 Tip
 23738 Hits
|
 Pascal and Delphi Coding
|
Daniel Kram
|
133. Record Keystrokes
You can record a series of keystrokes to be played back for quick changes in code. Use Ctrl+Shift + R to begin recording, Ctrl+Shift+R again to stop the recording, then Ctrl+Shift+P to play recording.
11 years ago, and updated 10 years ago
(1 Comments
, last by david_chesnet )
|
 KB Post
 8312 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
134. Records
Using record data types in Delphi.
16 years ago, and updated 13 years ago
|
 KB Post
 6747 Hits
|
 Pascal and Delphi Coding
|
lowster11
|
135. Register Now for CodeRage 5!
CodeRage is five full days of 100% online technical sessions focused on software development and data management issues which you can attend from wherever you like to log in. Its bringing you top industry speakers, technologists, and industry practitioners to present on a wide variety of developer topics, a raging confluence of conveniently-delivered information you cant get anywhere else. And its FREE!
|
 News
 3975 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
136. Reindexing and Packing dBASE and Paradox Tables
How to reindex and pack Paradox and dBASE tables.
16 years ago, and updated 11 years ago
|
 KB Post
 18952 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
137. Rubicon Delphi Info Search
Find Delphi info at the Rubicon Delphi and C++Builder search page.
12 years ago, and updated 12 years ago
|
 KB Post
 6882 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
138. Sealed Classes
What is a sealed class?
|
 FAQ
 7937 Hits
|
 Pascal and Delphi Coding
|
Scott Wehrly
|
139. Set File Extension to Always Show in Explorer
The default setting in Windows Explorer is to always hide known file extensions. This Delphi code shows you how to programatically set your own extension to always show in Explorer.
16 years ago, and updated 11 years ago
(1 Comments
)
|
 KB Post
 10072 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
140. Setting project options for better maintainability
Some tips for every Delphi project to keep things "clean", "neat", and well maintainable down the road.
13 years ago, and updated 13 years ago
(1 Comments
, last by Anonymous )
|
 KB Post
 8691 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
142. Simple Habits Save Lots of Pain
We developers sometimes get "on a roll." We know exactly what we need to do, and the code just flies off our fingertips.
Later, though, we find ourselves in trouble...
12 years ago, and updated 12 years ago
|
 KB Post
 5864 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
143. So Many Great Databases: Can It Get Any Better?
Contemporary databases provide incredible features, and supporting tools. Even so, there is one "add on" you should know about.
(1 Comments
)
|
 News
 5774 Hits
|
 Pascal and Delphi Coding
|
Kim Berry
|
144. SSL not working on Indy IdHTTP POST
How to enable SSL transactions with the Indy HTTP v9 component.
16 years ago, and updated 9 years ago
(8 Comments
, last by saeed.k )
|
 KB Post
 15137 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
145. Strict Visibility
The Strict specifier tightens up the scope for private and protected. With Strict Private, members within a class are visible ONLY within the class declared and Strict Protected are visible only within the class declared and descendent classes. Without strict, private and protected members can also be seen by all classes declared in the same unit (friendly classes). The Strict specifier was introduced with Delphi for .Net preview in Delphi 7 in an update to the .Net compiler preview and with Win32 in Delphi 2005 to fully comply with the .NET CLS. Delphi's traditional private specifier maps to the CLR's assembly visibility and the protected specifier maps to the CLR's assembly or family visibility.
|
 Definition
 15938 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
146. Sub-Classing the BDE TQuery Component
First in a series
13 years ago, and updated 11 years ago
|
 Article
 11912 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
147. TDBGrid: Rerarranging Columns at Will
Delphi's TDBGrid is an incredibly useful component; one you'd expect to find in any professional development tool.
One of it's handy behaviors is that users can click in column headers and drag to rearrange column ordering to their liking.
Unfortunately, TDBGrid doesn't offer the developer any really easy way to rearrange grid columns from code. This is inconvenient because you might offer the user a choice of various columns upon which they can search, and it would be nice to make their chosen column the leftmost - at least. Often it makes sense to rearrange other columns as well.
This little class allows you to do that.
It has no exposed methods, and only two properties, so it's incredibly easy to use.
Read on to learn how it works and to get the code.
|
 Article
 9108 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
148. TechTricks.com Delphi Articles
http://www.techtricks.com/delphi/
|
 Link
 4964 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
149. TEdit OnChange events
I have a form with two TEdit components on it. For the OnChange event for both, it clears the contents of the TEdit that is not changing. However, when clearing on TEdit the OnChange fires and clears the other TEdit, this then causes the OnChange in the other TEdit to fire. Fortunately, the second time the OnChange hits the original TEdit, it is already clear and nothing happens.
How can I prevent the circular event firing?
(3 Comments
, last by Azeem.A )
|
 FAQ
 14290 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
150. The Case for Delphi (On the Desktop)
In 1995 Borland revolutionized the world of software development when they introduced Delphi.
It had the distinction of being the first integrated development environment (IDE) featuring a fully object-oriented language and a blazing-fast compiler that produced highly optimized, native Intel machine code. Programs written in Delphi were among the fastest in existence – and still are.
After all these years, is Delphi still relevant?
You bet it is! (And, in many cases, it is still your best bet.)
Here's why...
|
 Article
 5524 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
151. TStringGrid Example
To determine the total number of columns in a String Grid, refer to its ColCount property and for the total number of rows, refer to RowCount. Determing the currently selected cell is a simple matter of referring to the Col and Row properties.
(2 Comments
, last by mprestwood )
|
 KB Post
 23521 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
152. TStringList - Maximizing Performance
Before adding many new entries to a TStringList, set its Sorted property to false. Add all your entries. Finally, set the Sorted property back to True (if desired).
Sorting is expensive, in terms of macnine cycles. By leaving the Sorted property set to True, you force the TStingList to re-sort itself after each entry. This can significantly slow things down.
This applies to TStrings, as well, and all components that have a TStrings property, like TListBox, etc.
(1 Comments
, last by Anonymous )
|
 Tip
 19833 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
154. UPS Shipping API 120971 Warning problem
On January 1, 2007, merchants using the UPS shipping API began experiencing a serious problem. Prestwood has found the solution.
12 years ago, and updated 11 years ago
|
 KB Post
 5850 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
155. Using Case Statements in Object PASCAL
Using case statements in Delphi.
16 years ago, and updated 8 years ago
(1 Comments
)
|
 KB Post
 15006 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
157. Using DotNet DLLs in Delphi Win32 Apps FAQ
Using DotNet DLLs in Win32 and using Win32 DLLs in DotNet. When. Why. How.
13 years ago, and updated 13 years ago
(1 Comments
, last by Uwais.Q )
|
 KB Post
 11421 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
158. Using GetHeapStatus
Memory Management and Delphi
11 years ago, and updated 10 years ago
(2 Comments
, last by mprestwood )
|
 KB Post
 12025 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
161. Using Mono Software Web Dialogs with Cassini and Delphi 2006
The online tutorials for these controls use IIS, this post describes the same use with the Cassini web server
|
 KB Post
 4765 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
162. Using Null Terminated and PChar Strings in Delphi
How to use Delphi's two varieties of string variables: Pascal strings and PChar strings.
16 years ago, and updated 11 years ago
(3 Comments
, last by Lehkuer.N )
|
 KB Post
 20069 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
163. Using Record Types In Delphi
How to use records in Delphi.
16 years ago, and updated 11 years ago
(2 Comments
, last by mprestwood )
|
 KB Post
 12726 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
166. Using the ^ Operand
Simple example of using the carrot operand.
|
 KB Post
 7521 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
167. Using the BDSWebExample with SQL Server 2005
Changes to be made when setting up the BDS Web Example for Delphi 2006 and SQL Server 2005
13 years ago, and updated 13 years ago
|
 KB Post
 6303 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
170. Valid TDataSet Filter Expressions
With TDataSet.Filter, use square brackets for fields with odd characters like spaces and slashes.
16 years ago, and updated 13 years ago
|
 KB Post
 11397 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
171. Video & Audio: CDN Delphi TV
http://dn.codegear.com/tv/delphi
|
 Link
 5432 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
172. Virtual Abstract versus Dynamic Abstract
Why do I have to specify virtual when creating an abstract method? Why not just abstract?
11 years ago, and updated 11 years ago
(2 Comments
, last by mprestwood )
|
 FAQ
 15693 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
173. Virus Targets Old Delphi Tools
New virus targets old versions of Delphi but not the applications developed with Delphi and not the current Delphi versions, just Delphi itself. I detest the jerks that write viruses and other forms of malware. But this one really gets my goat generally because it was a virus that targeted my favorite best-of-breed development tool and specifically because ZDNet reported the problem in a way that implies it targets applications developed by Delphi. Despite ZDNet's tag line, the virus targets old versions of Delphi (4, 5, 6, and 7) but not the applications developed with Delphi and not the current Delphi versions. I sure hope the way ZDNet chose to report this issue doesn't hurt Embarcadero, the owner of Delphi, because of a virus that attacks pre-Embarcadero versions of Delphi.
(1 Comments
, last by PUNAM.y )
|
 News
 4748 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
174. Where Does Your Data Belong?
Back in the wild and wooly days of C/PM, DOS, and early versions of Windows, we programmers could store our data pretty much anywhere. It might not have been a good idea, but we could get away with it.
Things have changed drastically!!
If your program stores data, you need to know where it belongs, and that varies quite a bit from one version of Windows to others.
Read on to find out where your data belongs.
|
 Article
 5928 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
176. Working with COM Servers: A Little Delphi
Microsoft's various COM technologies allow developers to write programs that can interoperate with other programs. This is great stuff!
Not surprisingly, Delphi makes it pretty easy to work with OLE, Active-X, OCX, etc.
But there's a nasty surprise awaiting you when you try to do this in a DLL you're creating, possibly even in a different thread of an executable, too.
Here we expose the problem - and the solution.
|
 Article
 7348 Hits
|
 Pascal and Delphi Coding
|
rhoStyle
|
177. xpStyle components 2.6.0.0
Set of components for creating advanced user interface in different styles (XP-style, ICQ-style and other...). Windows platforms independed. You can use this package with Delphi 3-7.
15 years ago, and updated 13 years ago
(3 Comments
, last by Anonymous )
|
 KB Post
 9418 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
178. Zooming main forms under Windows 95
Windows 95 adds several visual elements and actions that enhance the user's perception of how the system operates (editor's note: This also applies to Windows 98 and NT 4.0). One such enhancement is window zoom animation, which displays an animated, shrinking window that disappears into the window's icon on the Taskbar when you minimize the application. However, if you've run a Delphi 2.0 (editor's note: This applies to Delphi 3 and 4 as well) application on a Windows 95 system, you may have noticed that instead of seeing the standard zoom animation, the window simply disappears. In this article, we'll explain why this happens and how you can work around this disappearing act to enable zoom animation for your Delphi 2.0 applications.
11 years ago, and updated 11 years ago
|
 Article
 6188 Hits
|
 Pascal and Delphi Coding
|