Questions tagged as 'delphi'

3
answers

Can not catch error in sql [closed]

try DModuleGrid.ZQuery1.Close; DModuleGrid.ZQuery1.SQL.Clear; DModuleGrid.ZQuery1.SQL.Add('SELECT * FROM tdcupant'); DModuleGrid.ZQuery1.SQL.Add('WHERE numcupom = :co2 AND ccf = :cc3 AND dtcompra = :dtc4 AND impcaixa =...
asked by 16.05.2014 / 15:30
1
answer

Timer to rotate certain time

I need to make a timer that runs every day at 6 pm and press a Button. I did not find anything on the internet about this, any suggestions? I tried the following, but it does nothing:    // INTERVAL TIMER: 60000 var hora: TDateTime; b...
asked by 13.09.2014 / 03:48
1
answer

how to receive panel values for an array of strings?

How to get panel values with edits for an array of strings? I need 10 records to be typed into edits that are inside a panel, and thus save to an array of strings or integers.     
asked by 20.05.2015 / 20:48
1
answer

index of bounds and problems with timer

Next, I have a timer that fills 2 fields in a webbrowser, it does the following function ... var pega : string; begin pega := Listaimportados.Items[i]; I := i +1 nome.text := Copy(pega, 0, 10); Webbrowser1.OleObject.Document.al...
asked by 31.03.2015 / 09:34
1
answer

problem executing select on more than one table in delphi and firebird

select works in firebird, but the -104 error in delphi IBQuery2.SQL.Add('select l.jb_cdempresa, l.jb_cdfilial, p.dtvencimento, l.jb_cdcontacredito, p.vlrpago,'); IBQuery2.SQL.Add('l.jb_cdcontacredito, p.vlrpago, f.cnpj_cpf, f.insc_rg,l...
asked by 14.12.2018 / 18:52
1
answer

Check if record already exists in DB Grid Delphi

Good afternoon, everyone. The language I am using is Delphi 4. I am having a question on how to check if a record already exists in DB Grid. The values I want to insert into the DBGrid will be typed in a DB Edit. The table has two primary keys....
asked by 21.09.2018 / 19:49
1
answer

BDE does not connect to Sysdba user

I'm going through some problem with my BDE that I do not know yet right what it is, for some reason it does not connect to the bank with the default firebird password. I connect the same bank to ibexpert and it works, but by BDE it does not work...
asked by 26.05.2017 / 15:37
1
answer

How to change the Content-Type response in the REST DataSnap

I have a project made from WebBroker REST , running as a service, I need to change the response Cotent-Type to 'application/json' and by default WebBroker REST brings me as a result    Content-Type 'text / html; cha...
asked by 31.01.2017 / 13:54
1
answer

How to show exceptions raised in Datasnap REST Server, in the client?

Very good afternoon, everyone. So I have the following problem. I created a multilayer Application using Datasnap REST Server. I implemented the server with all the servermethods and also the client, so far so good ... I'm using Firedac Reflectio...
asked by 18.09.2016 / 01:55
1
answer

Delphi FireMonkey button in tTabControl does not respond

I'm creating an App with Berlin Starter Edition . I put tTabControl in Form , I created a Tab and put a tButton in it. Both tTabControl and tButton are Enabled . However when I run the program...
asked by 09.09.2016 / 00:41