Questions tagged as 'delphi'

1
answer

Combobox does not return columns from SqlServer

In the following code, it should present me the columns of a table that I have in my system, but when clicking to display the options in the combobox nothing appears. However, if I start typing the name of the field, for example, Name_ it is com...
asked by 05.11.2015 / 19:25
2
answers

Retrieve last inserted ID DataSnap / SqlServer [duplicate]

I am using SqlServer with my Delphi XE10 DataSnap application, but when I do an insert I would like the server to return the id that was just inserted in the sqlserver's autoincrement field so that I could display or update the client screen ....
asked by 02.08.2016 / 23:47
1
answer

File corrupted when copying from one folder to another

I'm locating and saving the files in a listbox1, as follows: procedure Localizar(DIR,ARQ: string; LIST: TStrings); var SR: TSearchRec; begin {Garante a barra no final do diretório} if DIR[length(DIR)] <> '\' then DIR := DIR + '\'; {Enco...
asked by 02.08.2016 / 20:18
3
answers

How to customize the Delphi editor? [closed]

I would like to get some tool that would customize the Delphi editor. Despite being a great editor, with features integrated with the component interface that automatically generates and updates code; editors such as the eclipse contains indenta...
asked by 13.02.2014 / 01:41
1
answer

Delphi getting value from field created at runtime

I create several runtime TRadioGroup: Rdb1:= TRadioGroup.Create(Painel); But with the same name "Rdb1". My question is how do I get the value of the field that was selected. I tried to do this: Rdb1.OnExit := Validacao; procedure TFCad_A...
asked by 16.02.2017 / 11:25
3
answers

Can I set up a server that works from my computer?

I have a Delphi chat that works only on the internal network, I also have the project for it if you want to make a change, and I wanted to know if it is possible to make this chat work on remote network computers from a mounted server on my own...
asked by 05.08.2015 / 02:13
2
answers

Doubt to "check" a radiobutton when clicking on an image

I have these 3 images with 3 RadioButtons different, I would like to click on the image of the blank square for example, its RadioButton is selected. I used radiobutton3.checked in event OnClick of image but did no...
asked by 13.06.2016 / 20:30
2
answers

How to add event to the event of an inherited form in Delphi?

I've been working on a lot of things, but I'm not sure what to do with it. inherited from FModelo1 has in addition to the inheritance of the OnCellClick event of FModelo1 its own CellClick event added when clicked. This is not happening becau...
asked by 12.04.2018 / 18:27
2
answers

What's the difference between these options for creating Form Delphi?

We have the following options: Application.CreateForm(TForm, Form); and Form := TForm.Create(Application); Is there a difference between the two? I know it exists because depending on where we call each of them the "Form" variable w...
asked by 08.02.2018 / 13:18
2
answers

sql query does not work with date in Delphi

I'm doing the following query in Delphi, using MySQL: QueryExtraiDados.Close; QueryExtraiDados.SQL.Clear; QueryExtraiDados.SQL.Add('Select * from clientes where nascimento='+QuotedStr('%'+antecedencia+'%')+' '); QueryExtraiDados.Open;...
asked by 14.05.2015 / 15:27