Questions tagged [delphi-7]

Delphi 7, released in August 2002, is a version of Delphi for Windows 32 bit.

Delphi 7 (codename: Aurora) is a specific version of Delphi. Always use the tag alongside this tag.

It was released in August 2002, became the standard version used by more Delphi developers than any other single version. It is one of the most successful IDEs created by Borland because of its stability, speed and low hardware requirements, and remained in active use as of 2011. Delphi 7 added support for Windows XP Themes, and added more support for building Web applications. It was the last version of Delphi which could be used without mandatory software activation.

Its release immediately preceded a period of turbulence in the history of Borland/CodeGear/Embarcadero that, combined with Delphi 7's robustness, contributed to its widespread use and longevity. In this regard, Delphi 7 can be considered the counterpart to MSVC6.

Delphi 7 introduced full support for XP themes, probably the most significant enhancement over Delphi 6.

Delphi 7 was preceded by Delphi 6 and succeeded by Delphi 8 (Codename: Octane).

Editions

Borland Delphi 7 Studio was released in four different editions:

  • Architect
  • Enterprise
  • Professional
  • Personal

References

2996 questions
22
votes
10 answers

Delphi isNumber

Is there a method in Delphi to check if a string is a number without raising an exception? its for int parsing. and an exception will raise if one use the try StrToInt(s); except //exception handling end;
none
  • 4,256
  • 13
  • 54
  • 96
21
votes
4 answers

In Delphi 7, how do I escape a percent sign (%) in the Format function?

I want to do something like this: SQL.Text := Format('select foo from bar where baz like ''%s%''',[SearchTerm]); But Format doesn't like that last '%', of course. So how can I escape it? \%? %%? Or do I have to do this: SQL.Text := Format('select…
Blorgbeard
  • 93,378
  • 43
  • 217
  • 263
20
votes
2 answers

Is there a way to update a field in a record knowing the field name and value

Given a Record: MyRecord = record Company: string; Address: string; NumberOfEmplyees: integer; can you write a function call like function UpdateField(var FieldName: string; FieldValue: variant): bool; so that: UpdateField('Company',…
Charles
  • 315
  • 2
  • 9
20
votes
2 answers

How to use variant arrays in Delphi

I have two Delphi7 programs: a COM automation server (EXE) and the other program which is using the automation server. I need to pass an array of bytes from one program to the other. After some searching I've found that using variant arrays is the…
Steve
  • 2,438
  • 3
  • 30
  • 50
20
votes
1 answer

How to check if a string contains a substring in Delphi?

String content = "Jane"; String container = 'A.Sven,G.Jane,Jack'; // This is the string which i need to be searched with string content boolean containerContainsContent = StringUtils.containsIgnoreCase(container, content); // I used to write like…
delsql
  • 481
  • 2
  • 5
  • 14
20
votes
1 answer

Recommended PE header settings for Delphi 7 application running on terminal server?

While investigating external exception C0000006 errors reported by some users running a Delphi 7 application on a Windows 2008 terminal server, I found several questions on this and related issues already. I'm wondering if anyone has a definitive…
dougwoodrow
  • 911
  • 10
  • 20
19
votes
5 answers

How to work with 0-based strings in a backwards compatible way since Delphi XE5?

I'm trying to convert my current Delphi 7 Win32 code to Delphi XE5 Android with minimal changes, so that my project can be cross-compiled to Win32 from a range of Delphi versions and Android from XE5. Starting from XE5 there are breaking changes in…
Kromster
  • 6,665
  • 7
  • 55
  • 98
17
votes
1 answer

Native hints/tooltips under Vista/7 with Delphi 7?

I am trying to reproduce native hints/tooltips under Windows Vista/7 using Delphi7. I've found a nice component which could solve the issue, but it only partially works. TListView components' tooltips aren't shown. The screen is blinking for a sec…
Steve
  • 2,438
  • 3
  • 30
  • 50
17
votes
2 answers

safe(st) way rename a delphi Project

Im sure this will be a simple one but have a project that started as a test. When it was created it was saved as "Project2.dpr" Now the test is no longer a 'test', i would like to change the projects name to something more meaningful. whats the…
Christopher Chase
  • 2,728
  • 5
  • 34
  • 54
17
votes
4 answers

Should I use String instead of TFilename?

When passing filename parameters to procedures/functions, should I use TFilename or String. If there is a difference, what is it, and what are then potential ramifications if using a String? e.g. procedure TForm1.OpenFile(const AFilename :…
Simon
  • 8,517
  • 13
  • 64
  • 107
16
votes
2 answers

Detect if Mouse button already pressed before form shows

If a mouse button is pressed and a window is shown that window will receive the MouseUp event when the mouse button is released. Is it possible to detect, once the window is shown, whether or not a mouse button is already pressed?
RobS
  • 3,697
  • 25
  • 34
16
votes
2 answers

Detecting IE Proxy settings and using with TIdHTTP

How do I set TIdHTTP to use IE proxy configuration? It should be compatible with XP/Vista/Win7 and reliable.
ZigiZ
  • 2,400
  • 2
  • 23
  • 37
16
votes
3 answers

In Delphi, is OutputDebugString thread safe?

Is OutputDebugString(PAnsiChar('')); thread safe? I/we have been using it in threads for debugging, and it never occurred to me if I should be doing it a different way. (Delphi 7)
Christopher Chase
  • 2,728
  • 5
  • 34
  • 54
16
votes
4 answers

How to Free an Interface Object (Delphi 7)

In some part of my application, I have the situation where I receive an interface which I know to be an object, albeit I don't know the exact class. I have to store that object in an interface-type variable. Eventually, I might receive another…
Pablo Venturino
  • 4,862
  • 4
  • 29
  • 40
16
votes
4 answers

Delphi 7 vista / windows 7 manifest

Would anyone have an example of a manifest file for Delphi 7 which allows apps to run as administrator on Windows XP / Vista / 7? Running an application with this feature usually leads to a User Account Control (UAC) dialog asking for privileged…
colin
  • 2,793
  • 6
  • 37
  • 48