Questions tagged as 'delphi'

1
answer

Add an if with 2 conditions [closed]

I have the following declared variables: n_var:= strtoint (En_var.Text); n_raster := strtoint (En_raster.Text); And I would like you to make a condition by comparing their values for example: if (En_var.Text = (inttostr(3)) and (En_raster...
asked by 30.09.2015 / 16:25
1
answer

How to check if the application shortcut exists on the Desktop, if there is no create a

I'm using Delphi XE7, I wanted to know how to check if my application already contains a shortcut on the Desktop, if in case there is no create a shortcut. From what I researched, I would have to look through the windows registry, does anyone...
asked by 04.04.2017 / 22:28
2
answers

How to deal with dependencies (DLL's) in Delphi / Lazarus?

How do I find out which DLL's should I distribute along with my application so that it works on any machine? I know InstallShield - it does the business in an automated way - but I would like to know if there is any free way to do this, ev...
asked by 14.04.2014 / 13:31
1
answer

Returning week number of the month

In January this year (2018) I have 5 weeks in it, being: 1 week: 1 to 7; 2 weeks: 8 to 14; 3 weeks: 15 to 21; 4 weeks: 22 to 28 and 5 weeks: 29 to 31 (or for others from 29 to 04 February). When I use the function...
asked by 30.01.2018 / 13:30
2
answers

Open xls (password protected) file in Delphi and save data to Firebird table

I have a password-protected office file ( .xls ) that has multiple rows. I want to do a search for the contents of the column 1 and knowing the line that is the result I want to save this single row in a Firebird database table. Example:...
asked by 10.02.2015 / 03:42
3
answers

How to change the color of the line of a DBGrid in Delphi?

I am doing a cost control system, and when I register a new revenue or new expense I want to change the color of the line of this record in dbGrid as chosen, I used a TDBRadioGroup to choose between 'Expense ' and ' Revenue '. Wha...
asked by 25.11.2016 / 02:48
3
answers

Error compiling Android Delphi-10 on Windows 10

I have a problem to compile for android in delphi-10, follow the error   The C: \ Program Files \ Java \ jdk1.7.0_79 \ bin \ C: \ Users \ Public \ Documents \ Embarcadero \ Studio.0 \ Bpl; C: \ Users \ Public \ C: \ Program Files \ Java \ jdk...
asked by 11.12.2015 / 11:44
1
answer

Delphi function works on windows but not on android

I have two functions in my project, one for cpf validation and one for removing characters other than numbers from the string; ok, when squeeze to windows works perfectly. Already when compiling to android, I squeeze the application on the cell...
asked by 12.01.2017 / 13:48
1
answer

RegEx in Delphi

A help with regular expressions in Delphi 10 please. I need to check the following in string : Size ranging from a minimum of 6 characters to a maximum of 20 characters; Type of characters: a-z or A-Z or 0-9 or _ (underline character...
asked by 04.12.2017 / 15:25
2
answers

Delphi does not write to txt file

The code below creates the txt file but does not write to it. What can it be? procedure TForm1.Button4Click(Sender: TObject); var arq: TextFile; begin qr.Active:= true; qr.First; try AssignFile(arq, 'd:\tabuada.txt'); Rewrite(arq);...
asked by 10.11.2017 / 15:40