Questions tagged [delphi-4]

Delphi 4 is a specific version of Delphi. It was released in July 1998. Use this tag for issues related to development in Delphi, version 4.

Delphi 4 is a specific version of Delphi.

Delphi 4 codename is Allegro.

Delphi 4 was preceded by Delphi 3 and succeeded by Delphi 5.

27 questions
5
votes
6 answers

How do I free the contents of a TList?

I have this code in Delphi 4. I created 10 objects of type T_Charge (see below), which I added to a TList, named myList. The T_Charge type has references to three objects of type T_Platte (see below). What is the correct way of freeing all the…
most
  • 61
  • 1
  • 1
  • 8
3
votes
5 answers

Query optimization in Delphi 4

In Delphi 4, we have one SELECT query which is fetching 3 Text type fields along with other required fields at a time using a TQuery component. There are more than 1,000 records (which might increase in future). This query consumes lots of memory.…
Dev
  • 629
  • 2
  • 9
  • 23
2
votes
1 answer

Cannot use Crystal Reports 2008 report from Delphi 4 on more than one database

I've converted a bunch of reports from Crystal Reports 7 to Crystal Reports 2008 as part of a migration from ASE (Sybase) to MS SQL Server. I also verified it via the "Set Database Location" option in Crystal Reports 2008. When I converted the…
2
votes
1 answer

How to define IInterface type for Delphi 4

It seems that Delphi 4 does not have IInterface type at all in system.pas How can I define this type myself so that I can use JEDI?
Tom
  • 6,725
  • 24
  • 95
  • 159
2
votes
1 answer

PDF printed as garbage with Brother printers

Possible Duplicate: Delphi: How to print a PDF without showing it? I am encountering different behavior while printing on different printers. On my printer the PDF print is correct but with "Brother" printers the same PDF is printed as gibberish…
Vic
  • 21
  • 1
1
vote
1 answer

(NOT) Validate 'any key' + DELETE pressed on Delphi 4

I can't figure out how to capture the 'any key'(except for CTRL) + 'Deletekey' press. I found out how to validate if CTRL + 'Deletekey'. The reason is because I need to make 2 actions: if 'CTRL' + 'Deletekey' is pressed. (Already achieved this…
BaldwinIV
  • 147
  • 10
1
vote
2 answers

Old project cannot be compiled in Delphi 4 due to pointers issue

I'm not experienced in Delphi at all and I have a very old project that can be compiled in Delphi of 2nd,3rd versions but isn't working in Delphi 4. The problem is about pointers that are working differently in the newer version. These pieces of…
Sib
  • 404
  • 4
  • 16
1
vote
1 answer

TRichEdit finding protected text

I am working on a TRichEdit (Delphi XE2). Is there any way i can check whether the richedit textbox contains protected text or not? Also the starting position of that protected text without iterating through the complete text. Currently i am using…
suri1
  • 21
  • 1
1
vote
5 answers

what does underscore mean in Delphi4

I come across the following in code. _name1 _name2 smeEGiGross: In general, what does _name1 underscore mean in Delphi 4?
vas
  • 2,078
  • 9
  • 39
  • 60
1
vote
1 answer

What icon resources are relevant to windows 8?

What icon resources are most relevant to windows 8? I have currently the largest icon in res file 48x48 x256 colors, should I have a larger one for Win8?
Tom
  • 6,725
  • 24
  • 95
  • 159
1
vote
1 answer

Programmatically adding columns to a TdxDBGrid (Expressquantumgrid by Devexpress)

With a customer I'm stuck developing for this very old version (2.1) of ExpressQuantumGrid by DevExpress. In Delphi 4. I can't find any documentation about it. Basically I just need to create a bunch of TdxDBGridMaskColumn and "insert" them into the…
Kaze no Koe
  • 3,254
  • 1
  • 21
  • 22
0
votes
1 answer

Obtain YYYYMM String from Now in Delphi 4

I want to obtain an string 'YYYYMM' from Now procedure and from the month before the current one in Delphi 4. For example: 202106 (Now) and 202105 (Now - 1) How can afford that?
BaldwinIV
  • 147
  • 10
0
votes
1 answer

Inherit uses from parent class

I have added some units to the uses part of my parent TForm. Then I went to File > New... and created a form inhering my form which has the usages. The child form seems not to have access to the units used in the parent form. Is this the correct…
Phiter
  • 14,570
  • 14
  • 50
  • 84
0
votes
1 answer

Delphi Using Indy 10

I'm using Delphi 4, and I want to create a standard non blocking socket with out the clutter of Indy code (Pv4 and Pv6). and i want to get the computers IP address and be able to ping has any one done this. Can I do it with Indy 10 or Indy 9. And…
lexdean
  • 151
  • 1
  • 2
  • 13
0
votes
0 answers

Delphi TImageList bitmaps spontaneously convert themselves from color to black & white

I have an issue where the 16x16 bitmaps in an imagelist get corrupted and are displayed as monochrome black and white images. This tends to happen between sessions in the IDE, so that after saving the project to disk, exiting the IDE, and opening…
DelphiFan
  • 41
  • 5
1
2