I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE
   ► KBProgrammingDelphi for W...   Print This     

Delphi KB: Delphi for Win32 Topic

Topics

181 Articles Found in the Delphi for Win32 Topic  (or one of the sub-topics in bold above)

  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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago
(1 Comments , last by Alaina.A )

KB Post
Nothing New Since Your Last Visit
6018
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.

Posted to KB Topic: Language Basics
9 years ago
(1 Comments , last by Austin.M )

Article
Nothing New Since Your Last Visit
202051
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.
Posted to KB Topic: Language Basics
9 years ago, and updated 9 years ago

Article
Nothing New Since Your Last Visit
9048
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.

Posted to KB Topic: OOP
9 years ago
(1 Comments , last by Uwais.Q )

Article
Nothing New Since Your Last Visit  
14875
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.

Posted to KB Topic: Language Details
15 years ago, and updated 15 years ago

Article
Nothing New Since Your Last Visit
6537
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.

Posted to KB Topic: Using Controls
9 years ago, and updated 8 years ago
(2 Comments , last by Alyssa.P )

Article
Nothing New Since Your Last Visit
5937
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.

Posted to KB Topic: Using Data
9 years ago, and updated 9 years ago
(2 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit
11338
Hits

Pascal and Delphi Coding

Mike Prestwood
8. Arrays Arrays in Object Pascal.
Posted to KB Topic: Language Details
14 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
5578
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.

Posted to KB Topic: Language Details
9 years ago, and updated 8 years ago

Tip
Nothing New Since Your Last Visit
11489
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).

Posted to KB Topic: Language Details
9 years ago, and updated 9 years ago
(6 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
23088
Hits

Pascal and Delphi Coding

Wes Peterson
11. Book: Delphi 2007 for Win32 Development Essentials http://www.lulu.com/content/2064073
9 years ago
(1 Comments , last by Austin.M )

Link
Nothing New Since Your Last Visit
4981
Hits

Pascal and Delphi Coding

Wes Peterson
12. Book: Delphi 2007 Handbook http://www.lulu.com/content/1069254
9 years ago

Link
Nothing New Since Your Last Visit
4646
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

11 years ago, and updated 7 years ago

KB Post
Nothing New Since Your Last Visit
3970
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?

10 years ago, and updated 7 years ago

FAQ
Nothing New Since Your Last Visit
16330
Hits

Pascal and Delphi Coding

Mike Prestwood
15. Camel versus Pascal Casing What is the difference between Camel Casing and Pascal Casing?
Posted to KB Topic: Language Basics
9 years ago, and updated 9 years ago
(1 Comments , last by mprestwood )

FAQ
Nothing New Since Your Last Visit
16148
Hits

Pascal and Delphi Coding

Mike Prestwood
16. Check screen resolution in Delphi How do you check screen resolution in Delphi?
Posted to KB Topic: Using Data
15 years ago, and updated 10 years ago

FAQ
Nothing New Since Your Last Visit
9333
Hits

Pascal and Delphi Coding

Mike Prestwood
17. CodeGear Blogs http://blogs.codegear.com/
9 years ago

Link
Nothing New Since Your Last Visit
4119
Hits

Pascal and Delphi Coding

William Pantoja
18. COM Collections

Correctly implementing COM collections.

Posted to KB Topic: Language Details
9 years ago

Article
Nothing New Since Your Last Visit
7032
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.
9 years ago
(5 Comments , last by quotes.p )

KB Post
Nothing New Since Your Last Visit
15900
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.

Posted to KB Topic: Using Controls
9 years ago, and updated 8 years ago

Article
Nothing New Since Your Last Visit
7627
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.
10 years ago, and updated 9 years ago
(3 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
15903
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:

Posted to KB Topic: Using Data
9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
8066
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.

Posted to KB Topic: Coding Tasks
11 years ago

KB Post
Nothing New Since Your Last Visit
6967
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.
Posted to KB Topic: Using Data
10 years ago, and updated 9 years ago
(1 Comments , last by Austin.M )

KB Post
Nothing New Since Your Last Visit
18081
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.
Posted to KB Topic: Using Data
10 years ago, and updated 8 years ago
(3 Comments , last by franco_p )

Article
Nothing New Since Your Last Visit
11769
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.

Posted to KB Topic: Tool Basics
10 years ago
(1 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
7755
Hits

Pascal and Delphi Coding

Scott Wehrly
28. Dec Delphi UG meeting summary Meeting summary, info, and download.
Posted to KB Topic: Sac Delphi User Group
14 years ago

News
Nothing New Since Your Last Visit
3935
Hits

Pascal and Delphi Coding

Wes Peterson
29. DelForEx: A Delphi Code Formatter http://www.aew.wur.nl/UK/Delforexp/
9 years ago

Link
Nothing New Since Your Last Visit
17795
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.
9 years ago, and updated 9 years ago

News
Nothing New Since Your Last Visit
3531
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.
9 years ago, and updated 9 years ago

News
Nothing New Since Your Last Visit
4141
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?
12 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
11776
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.

Posted to KB Topic: OOP
9 years ago, and updated 6 years ago
(4 Comments , last by Uwais.Q )

Code

Article
Nothing New Since Your Last Visit
19426
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.
9 years ago
(1 Comments , last by mprestwood )

News
Nothing New Since Your Last Visit
5029
Hits

Pascal and Delphi Coding

Mike Prestwood
35. Delphi Array (x=Array[0..3] of string;)

Delphi supports both static and dynamic arrays.

7 years ago
(2 Comments , last by Anonymous )

Code

KB Post
Nothing New Since Your Last Visit  
15591
Hits

Pascal and Delphi Coding

Mike Prestwood
36. Delphi Assignment (:=)

Delphi uses := for it's assignment operator.

Posted to KB Topic: Language Basics
9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5879
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).

Posted to KB Topic: Language Details
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
13160
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit  
19749
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.

Posted to KB Topic: Coding Tasks
8 years ago

Article
Nothing New Since Your Last Visit
20899
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.

Posted to KB Topic: Coding Tasks
9 years ago, and updated 7 years ago
(4 Comments , last by Wes )

Article
Nothing New Since Your Last Visit
18454
Hits

Pascal and Delphi Coding

Mike Prestwood
41. Delphi Case Sensitivity (No)

Object Pascal is generally not case sensitive.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago
(3 Comments , last by Bailey.S )

Code

KB Post
Nothing New Since Your Last Visit  
15484
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.
Posted to KB Topic: OOP
8 years ago, and updated 7 years ago

Code

Article
Nothing New Since Your Last Visit  
20855
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
10892
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago
(3 Comments , last by Uwais.Q )

Code

KB Post
Nothing New Since Your Last Visit
13102
Hits

Pascal and Delphi Coding

Mike Prestwood
45. Delphi Code Blocks (begin..end)

Object Pascal requires the semi-colon after the "declaration" part.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
6662
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.

Posted to KB Topic: Language Basics
9 years ago, and updated 9 years ago
(5 Comments , last by Uwais.Q )

Code

Article
Nothing New Since Your Last Visit  
31788
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

Posted to KB Topic: Language Details
8 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit
8754
Hits

Pascal and Delphi Coding

Mike Prestwood
48. Delphi Components 101 Be careful who you associate with!
Posted to KB Topic: Using Data
15 years ago, and updated 11 years ago

Article
Nothing New Since Your Last Visit
5229
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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit  
11739
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit  
14219
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.

Posted to KB Topic: Language Details
9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
8030
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.

Posted to KB Topic: Tool Basics
8 years ago

Code
Nothing New Since Your Last Visit  
8123
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago
(3 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit  
19103
Hits

Pascal and Delphi Coding

Mike Prestwood
54. Delphi Development Tools

Languages Focus: Development Tools

Primary development tool(s) used to develop and debug code.

Delphi Development Tools

CodeGear Delphi is the primary tool of choice for most developers but other Object Pascal language development tools do exist and some are quite good.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5794
Hits

Pascal and Delphi Coding

Mike Prestwood
55. Delphi Editor Tips and Tricks

Borland Delphi editor tips and tricks.

Posted to KB Topic: Tool Basics
14 years ago, and updated 7 years ago

KB Post
Nothing New Since Your Last Visit
10906
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.

8 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
13939
Hits

Pascal and Delphi Coding

Mike Prestwood
57. Delphi End of Statement (;)

Languages Focus: End of Statement

In 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 Statement

Object 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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit  
6079
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.

8 years ago

Code
Nothing New Since Your Last Visit
7264
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:

9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
7262
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.
Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit
7310
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.
9 years ago, and updated 9 years ago

News
Nothing New Since Your Last Visit
3307
Hits

Pascal and Delphi Coding

Mike Prestwood
62. Delphi for Win32 Home Page http://www.codegear.com/products/delphi/win32
9 years ago

Link
Nothing New Since Your Last Visit
4214
Hits

Pascal and Delphi Coding

Mike Prestwood
63. Delphi for Win32 Roadmap http://dn.codegear.com/article/36620
9 years ago

Link
Nothing New Since Your Last Visit
4277
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.

6 years ago

KB Post
Nothing New Since Your Last Visit
5687
Hits

Pascal and Delphi Coding

Larry J. Rutledge
65. Delphi Gazette, Volumn 1, Issue 11, Nov 1998 Prestwood Delphi Gazette Archive
9 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
5249
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).

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago
(6 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
21871
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit  
22858
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
4815
Hits

Pascal and Delphi Coding

Mike Prestwood
69. Delphi Inline Code (asm)

In Delphi, you can inline assembler code using the asm keyword.

8 years ago

Code
Nothing New Since Your Last Visit
7737
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.

Posted to KB Topic: Language Details
8 years ago
(1 Comments , last by Wes )

Code
Nothing New Since Your Last Visit  
13291
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.
Posted to KB Topic: Using Data
9 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
11291
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit
19478
Hits

Pascal and Delphi Coding

Mike Prestwood
73. Delphi LeftStr

Delphi LeftStr

Posted to KB Topic: Language Details
9 years ago

Code
Nothing New Since Your Last Visit
8763
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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit  
12889
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

Posted to KB Topic: Language Basics
8 years ago
(1 Comments , last by james.l2 )

Code
Nothing New Since Your Last Visit  
12365
Hits

Pascal and Delphi Coding

Mike Prestwood
76. Delphi Member Events

In Delphi, member events are essentially properties of the type method pointer.

8 years ago

Code
Nothing New Since Your Last Visit
5751
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).

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
6172
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
6129
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit  
7948
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).

Posted to KB Topic: OOP
9 years ago, and updated 7 years ago
(2 Comments , last by mprestwood )

Code
Nothing New Since Your Last Visit
11527
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit  
30007
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.
Posted to KB Topic: Language Basics
9 years ago

Definition
Nothing New Since Your Last Visit
7267
Hits

Pascal and Delphi Coding

Mike Prestwood
83. Delphi Overloading (overload)

Object Pascal

  • Operator - Yes. But not Pascal.
  • Method - Yes.  
Posted to KB Topic: Language Details
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit
17660
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.

Posted to KB Topic: OOP
8 years ago, and updated 7 years ago
(2 Comments , last by Anonymous )

Code

Article
Nothing New Since Your Last Visit
17767
Hits

Pascal and Delphi Coding

Mike Prestwood
85. Delphi Overview and History

CodeGear Delphi Helmet IconLanguage 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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5315
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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code

Article
Nothing New Since Your Last Visit  
15264
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.

Posted to KB Topic: Language Details
8 years ago

Code
Nothing New Since Your Last Visit
7792
Hits

Pascal and Delphi Coding

Mike Prestwood
88. Delphi Polymorphism

Delphi supports the following types of polymorphism:

Posted to KB Topic: OOP
8 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
10883
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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago
(3 Comments , last by Uwais.Q )

Code

KB Post
Nothing New Since Your Last Visit
25146
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.

Posted to KB Topic: OOP
9 years ago, and updated 8 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit  
13387
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.

Posted to KB Topic: Language Details
8 years ago

Code
Nothing New Since Your Last Visit
10045
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.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
5682
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,

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code
Nothing New Since Your Last Visit
11610
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, PCharInteger, Boolean, Single, Double, Pointer, and Variant.

Posted to KB Topic: Language Basics
9 years ago, and updated 8 years ago

Code

KB Post
Nothing New Since Your Last Visit  
19169
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

Posted to KB Topic: Sac Delphi User Group
7 years ago
(1 Comments , last by lowster11 )

News
Nothing New Since Your Last Visit
5207
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.
14 years ago
(1 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
9640
Hits

Pascal and Delphi Coding

Larry J. Rutledge
99. Delphi: Windows Shell Extensions How to add functionality to the existing Windows™ shell.
14 years ago, and updated 10 years ago

Article
Nothing New Since Your Last Visit
14343
Hits

Pascal and Delphi Coding

Mike Prestwood
100. Delphi3000.com http://www.delphi3000.com/
9 years ago
(1 Comments , last by Uwais.Q )

Link
Nothing New Since Your Last Visit
5801
Hits

Pascal and Delphi Coding

ermohan_rp
101. 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.
10 years ago

KB Post
Nothing New Since Your Last Visit
4896
Hits

Pascal and Delphi Coding

Larry J. Rutledge
102. Detecting Windows SafeMode

Use Windows API GetSystemMetrics with SM_CLEANBOOT parameter to determine how Windows was started.

9 years ago, and updated 8 years ago

KB Post
Nothing New Since Your Last Visit
4875
Hits

Pascal and Delphi Coding

Mike Prestwood
105. Dr. Bob 42 http://www.drbob42.com/
9 years ago

Link
Nothing New Since Your Last Visit
6444
Hits

Pascal and Delphi Coding

Wes Peterson
106. 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.
Posted to KB Topic: Using Data
9 years ago, and updated 9 years ago

Article
Nothing New Since Your Last Visit
5358
Hits

Pascal and Delphi Coding

Mike Prestwood
107. Embarcadero Technologies http://www.embarcadero.com/
9 years ago

Link
Nothing New Since Your Last Visit
3967
Hits

Pascal and Delphi Coding

Wes Peterson
109. Extracting Plain Text From HTML HTML is great. Sometimes, though, we need to get at just the embedded plain text.
Posted to KB Topic: Using Data
11 years ago, and updated 9 years ago
(1 Comments , last by mprestwood )

Download
Nothing New Since Your Last Visit
20416
Hits

Pascal and Delphi Coding

Mike Prestwood
110. Get NIC MAC Address

This code snippet shows you how to get your NIC MAC address using Borland Delphi.

Posted to KB Topic: Coding Tasks
14 years ago, and updated 7 years ago
(4 Comments , last by Wes )

KB Post
Nothing New Since Your Last Visit
29196
Hits

Pascal and Delphi Coding

Wes Peterson
111. 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?

Posted to KB Topic: Using Data
10 years ago, and updated 9 years ago

Article
Nothing New Since Your Last Visit
8048
Hits

Pascal and Delphi Coding

Hannes Bez
112. GETTING A LIST OF PC MAC ADDRESSES

Found a cryptic version of this code on http://www.delphifaq.com/faq/delphi/network/f702.shtml by narayana and re-arranged and adapted it to produce a non-duplicated list of MAC addresses in a re-usable code snippet. I show you how to include this unit in your project and then how to call it to get a list of the MAC addresses. Most importantly, it does not use NetBios and I have tested it on Win7 32- and 64-bit.

Posted to KB Topic: Coding Tasks
7 years ago
(3 Comments , last by Mike.E2 )

KB Post
Nothing New Since Your Last Visit
7556
Hits

Pascal and Delphi Coding

Joshua Delahunty
113. 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.
11 years ago

Article
Nothing New Since Your Last Visit
5874
Hits

Pascal and Delphi Coding

Wes Peterson
114. GExperts http://www.gexperts.org/
9 years ago

Link
Nothing New Since Your Last Visit
6736
Hits

Pascal and Delphi Coding

Mike Prestwood
117. 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.

Posted to KB Topic: Tool Basics
8 years ago

Tip
Nothing New Since Your Last Visit
6900
Hits

Pascal and Delphi Coding

Scott Wehrly
118. Large Fonts and Windows Controls This topic discusses the issues surrounding Delphi forms running on a desktop with large fonts enabled.
Posted to KB Topic: Tool Basics
14 years ago, and updated 14 years ago
(2 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
26167
Hits

Pascal and Delphi Coding

narayana
119. 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.
11 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
5389
Hits

Pascal and Delphi Coding

Wes Peterson
120. Magazine: Blaise Pascal http://www.blaisepascal.eu/
9 years ago

Link
Nothing New Since Your Last Visit
4721
Hits

Pascal and Delphi Coding

Mike Prestwood
122. Marco Cantu Home http://www.marcocantu.com/
9 years ago

Link
Nothing New Since Your Last Visit
4067
Hits

Pascal and Delphi Coding

Daniel Kram
123. 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.
Posted to KB Topic: Using Data
9 years ago
(2 Comments , last by mprestwood )

Article
Nothing New Since Your Last Visit
9563
Hits

Pascal and Delphi Coding

Mike Prestwood
124. Native Code versus Managed .Net Code

What are the benefits of Win32/64 native code such as in Delphi over .Net?

Posted to KB Topic: Language Basics
9 years ago, and updated 7 years ago
(3 Comments , last by mtiede )

FAQ
Nothing New Since Your Last Visit
8018
Hits

Pascal and Delphi Coding

Mike Prestwood
125. New DevExpress Updates Now Available List of releases available as part of the newest update of Express Install, v1.36.
9 years ago

News
Nothing New Since Your Last Visit
4236
Hits

Pascal and Delphi Coding

Daniel Kram
127. 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.

Posted to KB Topic: Language Basics
9 years ago, and updated 7 years ago
(3 Comments , last by mtiede )

Tip
Nothing New Since Your Last Visit
8344
Hits

Pascal and Delphi Coding

Mike Prestwood
128. Pascal and PChar Strings Using Pascal and PChar strings in Delphi.
Posted to KB Topic: Language Details
14 years ago, and updated 11 years ago
(1 Comments )

KB Post
Nothing New Since Your Last Visit
9937
Hits

Pascal and Delphi Coding

Joshua Delahunty
129. 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.
11 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
3368
Hits

Pascal and Delphi Coding

Mike Prestwood
130. 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:

Prestwood Software

8 years ago, and updated 8 years ago

News
Nothing New Since Your Last Visit
4417
Hits

Pascal and Delphi Coding

Mike Prestwood
131. Private versus Strict Private What is the difference between private and strict private?
Posted to KB Topic: OOP
9 years ago
(1 Comments , last by Uwais.Q )

FAQ
Nothing New Since Your Last Visit
10230
Hits

Pascal and Delphi Coding

Mike Prestwood
132. 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.

8 years ago
(2 Comments , last by Joseph.C3 )

Error
Nothing New Since Your Last Visit
16113
Hits

Pascal and Delphi Coding

Scott Wehrly
133. Proper Use of Proper use of dynamically created components that doesn't break the built-in garbage collection scheme.
14 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
4373
Hits

Pascal and Delphi Coding

Mike Prestwood
134. Protected versus Strict Protected What is the difference between Protected and Strict Protected visibility?
Posted to KB Topic: OOP
9 years ago
(1 Comments , last by Uwais.Q )

FAQ
Nothing New Since Your Last Visit
9248
Hits

Pascal and Delphi Coding

Daniel Kram
135. 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.
Posted to KB Topic: Using Data
9 years ago
(1 Comments , last by Uwais.Q )

Tip
Nothing New Since Your Last Visit
18554
Hits

Pascal and Delphi Coding

Daniel Kram
136. 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.

Posted to KB Topic: Tool Basics
9 years ago, and updated 8 years ago
(1 Comments , last by david_chesnet )

KB Post
Nothing New Since Your Last Visit
6276
Hits

Pascal and Delphi Coding

Mike Prestwood
137. Records Using record data types in Delphi.
Posted to KB Topic: Language Details
14 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
5352
Hits

Pascal and Delphi Coding

lowster11
138. 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!

Posted to KB Topic: Sac Delphi User Group
7 years ago

News
Nothing New Since Your Last Visit
3268
Hits

Pascal and Delphi Coding

Mike Prestwood
139. Reindexing and Packing dBASE and Paradox Tables How to reindex and pack Paradox and dBASE tables.
Posted to KB Topic: Using Data
14 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
15518
Hits

Pascal and Delphi Coding

Wes Peterson
140. Rubicon Delphi Info Search Find Delphi info at the Rubicon Delphi and C++Builder search page.
10 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
5717
Hits

Pascal and Delphi Coding

Mike Prestwood
141. Sealed Classes

What is a sealed class?

Posted to KB Topic: OOP
9 years ago

FAQ
Nothing New Since Your Last Visit
6013
Hits

Pascal and Delphi Coding

Scott Wehrly
142. 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.
Posted to KB Topic: Using Data
14 years ago, and updated 9 years ago
(1 Comments )

KB Post
Nothing New Since Your Last Visit
8610
Hits

Pascal and Delphi Coding

Joshua Delahunty
143. Setting project options for better maintainability Some tips for every Delphi project to keep things "clean", "neat", and well maintainable down the road.
11 years ago, and updated 11 years ago
(1 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
7370
Hits

Pascal and Delphi Coding

Wes Peterson
145. 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...
Posted to KB Topic: Language Basics
10 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
4723
Hits

Pascal and Delphi Coding

Wes Peterson
146. 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.
Posted to KB Topic: Tool Basics
10 years ago
(1 Comments )

News
Nothing New Since Your Last Visit
4995
Hits

Pascal and Delphi Coding

Kim Berry
147. SSL not working on Indy IdHTTP POST

How to enable SSL transactions with the Indy HTTP v9 component.

14 years ago, and updated 7 years ago

KB Post
Nothing New Since Your Last Visit
12561
Hits

Pascal and Delphi Coding

Mike Prestwood
148. 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.
Posted to KB Topic: OOP
9 years ago

Definition
Nothing New Since Your Last Visit
11733
Hits

Pascal and Delphi Coding

Joshua Delahunty
149. Sub-Classing the BDE TQuery Component First in a series
11 years ago, and updated 9 years ago

Article
Nothing New Since Your Last Visit
10029
Hits

Pascal and Delphi Coding

Wes Peterson
150. 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.

Posted to KB Topic: Using Controls
52 months ago

Article
Nothing New Since Your Last Visit
7248
Hits

Pascal and Delphi Coding

Mike Prestwood
151. TechTricks.com Delphi Articles http://www.techtricks.com/delphi/
9 years ago

Link
Nothing New Since Your Last Visit
4080
Hits

Pascal and Delphi Coding

Larry J. Rutledge
152. 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?
Posted to KB Topic: Using Controls
9 years ago

FAQ
Nothing New Since Your Last Visit
10642
Hits

Pascal and Delphi Coding

Wes Peterson
153. 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...

42 months ago

Article
Nothing New Since Your Last Visit
3482
Hits

Pascal and Delphi Coding

Mike Prestwood
154. 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.
Posted to KB Topic: Using Controls
9 years ago
(2 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
19559
Hits

Pascal and Delphi Coding

Wes Peterson
155. 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.
Posted to KB Topic: Using Data
9 years ago
(1 Comments , last by Anonymous )

Tip
Nothing New Since Your Last Visit
15054
Hits

Pascal and Delphi Coding

Wes Peterson
157. 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.
Posted to KB Topic: Using Data
10 years ago, and updated 9 years ago

KB Post
Nothing New Since Your Last Visit
4944
Hits

Pascal and Delphi Coding

Mike Prestwood
158. Using Case Statements in Object PASCAL Using case statements in Delphi.
Posted to KB Topic: Language Details
14 years ago, and updated 6 years ago
(1 Comments )

KB Post
Nothing New Since Your Last Visit
12906
Hits

Pascal and Delphi Coding

Mike Prestwood
160. Using DotNet DLLs in Delphi Win32 Apps FAQ Using DotNet DLLs in Win32 and using Win32 DLLs in DotNet. When. Why. How.
Posted to KB Topic: Using Data
11 years ago, and updated 11 years ago
(1 Comments , last by Uwais.Q )

KB Post
Nothing New Since Your Last Visit
9282
Hits

Pascal and Delphi Coding

Mike Prestwood
161. Using GetHeapStatus Memory Management and Delphi
Posted to KB Topic: Using Data
9 years ago, and updated 8 years ago
(2 Comments , last by mprestwood )

KB Post
Nothing New Since Your Last Visit
10106
Hits

Pascal and Delphi Coding

Joshua Delahunty
164. 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

11 years ago

KB Post
Nothing New Since Your Last Visit
3996
Hits

Pascal and Delphi Coding

Mike Prestwood
165. Using Null Terminated and PChar Strings in Delphi How to use Delphi's two varieties of string variables: Pascal strings and PChar strings.
Posted to KB Topic: Language Details
14 years ago, and updated 9 years ago
(1 Comments , last by Uwais.Q )

KB Post
Nothing New Since Your Last Visit
17040
Hits

Pascal and Delphi Coding

Mike Prestwood
166. Using Record Types In Delphi How to use records in Delphi.
Posted to KB Topic: Language Details
14 years ago, and updated 9 years ago
(2 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
10236
Hits

Pascal and Delphi Coding

Mike Prestwood
169. Using the ^ Operand Simple example of using the carrot operand.
Posted to KB Topic: Language Details
14 years ago

KB Post
Nothing New Since Your Last Visit
6060
Hits

Pascal and Delphi Coding

Joshua Delahunty
170. 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
11 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
5243
Hits

Pascal and Delphi Coding

Mike Prestwood
173. Valid TDataSet Filter Expressions With TDataSet.Filter, use square brackets for fields with odd characters like spaces and slashes.
Posted to KB Topic: Using Data
14 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
9962
Hits

Pascal and Delphi Coding

Mike Prestwood
174. Video & Audio: CDN Delphi TV http://dn.codegear.com/tv/delphi
Posted to KB Topic: Education (Audio/Video)
9 years ago

Link
Nothing New Since Your Last Visit
4315
Hits

Pascal and Delphi Coding

Mike Prestwood
175. Virtual Abstract versus Dynamic Abstract Why do I have to specify virtual when creating an abstract method? Why not just abstract?
Posted to KB Topic: OOP
9 years ago, and updated 9 years ago
(2 Comments , last by mprestwood )

FAQ
Nothing New Since Your Last Visit
12948
Hits

Pascal and Delphi Coding

Wes Peterson
176. 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.

8 years ago

News
Nothing New Since Your Last Visit
3859
Hits

Pascal and Delphi Coding

Wes Peterson
177. 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.

42 months ago

Article
Nothing New Since Your Last Visit
3800
Hits

Pascal and Delphi Coding

Wes Peterson
179. 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.

Posted to KB Topic: Coding Tasks
8 years ago

Article
Nothing New Since Your Last Visit
6109
Hits

Pascal and Delphi Coding

rhoStyle
180. 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.
Posted to KB Topic: Using Data
13 years ago, and updated 11 years ago
(3 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
7949
Hits

Pascal and Delphi Coding

Larry J. Rutledge
181. 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.
Posted to KB Topic: Using Controls
9 years ago, and updated 9 years ago

Article
Nothing New Since Your Last Visit
4605
Hits

Pascal and Delphi Coding

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New Pascal and Delphi Coding Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  Pascal and Delphi Coding Message Board
-
   Contact Us!
 
PrestwoodBoards.com was developed and is maintainted by me. Do you have a question or suggestion? Do you see a problem? Contact me now. My goal is to build an ad-free and spam-free source of I.T. information with many contributers (ok to promote your website/company in your bio). Yes, my company Prestwood IT Solutions is mentioned in my bio which shows with every post, but you can contribute and promote your pet project too!

1,259 People Online Now!!  
Sign In to see who's online now!  Not a member? Join now. It's free!
Show more stats...


©1995-2017 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech