Questions tagged as 'delphi-7'

2
answers

How do I convert multiple ".dfm" files that are in binary format to text?

I have a legacy project that was initially developed in versions prior to Delphi 7, where it has a very large number of units (.pas) and forms (.dfm). I am having a problem because as the .dfm files are in binary format I can not compare th...
asked by 28.03.2014 / 17:52
1
answer

Why Shortstring consumes more memory than a common String

I've done an example here to see how much memory consumes each variable and I noticed that a variable of type ShortString consumes 256 while a variable of type String consumes only 4. Here's an example for verification: unit Unit...
asked by 19.05.2017 / 15:29
1
answer

Delphi hours operation

I was handling hours in Delphi and came across the following situation: CASE 1 horafinal := strtotime('08:00'); horaInicial := strtotime('17:00'); horaInicial := horaInicial - horafinal; //09:00 horafinal := horafinal - horafinal; //00:00...
asked by 06.03.2015 / 20:58
2
answers

Execute executable-independent program

I'm doing an updater, but at certain times, I need to update the executable, which is not possible since it's in use. I would have a way to swap the executables and run the program later.     
asked by 18.10.2014 / 11:27
1
answer

'Could not convert variant of type (Null) into type (Double)'

if DataModuleGeral.tbHonorariosPERCENT_ADV_ASSIST1.AsFloat = 0 then begin DataModuleGeral.tbHonorariosPERCENT_ADV_ASSIST1.Value := Null; end; I have the above routine that when the percentage caligo is 0 I try to set the field to Null...
asked by 15.08.2017 / 14:40
1
answer

Idhttp pick up downloaded file size

Well, I would like to know how to find out the size of the file being downloaded with the IdHttp component.     
asked by 24.10.2014 / 08:38
1
answer

FieldByName parameter bold

Hello, I have a RichText that I made the insertion of the text via programming, however there are some parts of this text that I bring from the bank, I need these specific fields to be bold inside RichText. Following is an example of the code...
asked by 07.06.2018 / 16:53
1
answer

Temporary file with indy

Well, I'm trying to download a text file and get a RichEdit to grab the contents of that file. But I'm not sure how to do it. I tried this way: news := 'http://pokestage.ddns.net/patch/patchlist.txt'; sRichEdit1.Lines[1] := IdHTTP2.Get(news);...
asked by 17.10.2014 / 13:05
1
answer

Connect PostgreSQL to Delphi 7 via ZeosLib

I'm trying to connect to PostgreSQL in Delphi 7, I found in a forum the idea of using ZeosLib to make this connection by watching a video lesson I got to this configuration: Butevenfollowingstepbystephowtoconfigure,wheneverItrytomaketheconne...
asked by 19.10.2016 / 14:36
1
answer

Is it possible to identify which open programs the BDE uses for connection? How do I do?

I need to know from a list of open programs which are using BDE for database access, so I want to know if it's possible and how I do it. Att Luiz     
asked by 24.08.2015 / 01:33