Questions tagged as 'pascal'

1
answer

Combobox in firemonkey without using FDQuery

I have a combobox of states in my register, where I connect via livebindings with an FDMemTable to save the data in the database. How could I get the index item of the selected item in the combo? The only bidirectional binding I found was Sel...
asked by 13.04.2018 / 20:37
1
answer

On the passing of parameters in compiled programming languages [closed]

What would be most advantageous when calling a function, putting it in the stack from right to left or vice versa? What about cleaning the battery? Does the calling function caller (or calee) have to be responsible for this? My two cents:...
asked by 10.12.2016 / 23:06
1
answer

Problem in defining onClick in runtime with Pascal (Delphi / Lazarus)

I need to use procedure ClicaItem(Sender: TObject); in a OnClick created at run time by calling procedure CriaItem(nome:String); . However, in all my attempts, I could not assign item.OnClick to procedure ClicaIte...
asked by 27.03.2016 / 08:03
2
answers

How to use exponent in Pascal?

I have a problem to solve, where in the PG formula you use an exponent other than two (squared), and can not use sqrt() . How can I solve this in Pascal in an intuitive way? I know you can not use ** either. Formula: an = a...
asked by 19.08.2017 / 06:55
1
answer

How to check the UNEXISTENCE of a directory on an FTP server in Delphi?

I use Delphi and Lazarus to create my applications, what should I do to verify the nonexistence of a directory contained on an FTP Server ? For example, when you check the nonexistence of a local file , use the following c...
asked by 03.04.2016 / 02:32
1
answer

Lazarus accents in JSON

I'm having a problem with accentuation in Lazarus, when I get a JSON coming from a URL it returns characters as "" instead of "", does anyone know what I can do? Follow the code procedure TForm1.Button1Click(Sender: TObject); Var S : String;...
asked by 17.12.2015 / 19:12
1
answer

Function for popular TTreeview only adds childs to the first node

I created this procedure to populate a treeview: procedure TFrmGerProfDock.Button1Click(Sender: TObject); Var Tables: TTreeNode; I: Integer; begin for I := 0 to ds.DataSet.FieldCount - 1 do begin TreeView1.Items.BeginUpdate;...
asked by 25.06.2015 / 16:52
3
answers

How to find values in pascal

I'm setting up a program here in Pascal, where I have a record with 3 positions, each with name, age and weight. I also have a procedure called Query, which will allow me to search for a registered name, and return their age and weight. My probl...
asked by 30.04.2014 / 00:49
0
answers

How Do I Record an Audio with AudioRecorder from the Android API In Delphi Pascal

I have a small project where I need to record an audio through the android API through Delphi with Pascal, but I have not been very successful in my codes. Could someone help me in this dilemma? What I have is a mixture of some examples I fou...
asked by 13.07.2017 / 10:43
0
answers

Create SQL Tax Table

I'm developing a budget system, and to finish my project, I need to create a tax table. To help you, here is an example of what I want to do: in the raw material table, each material has a purchase tax and this amount of product taxes can be cha...
asked by 06.07.2015 / 18:12