Questions tagged as 'delphi'

3
answers

Count Number of Letters in a String - Delphi

I am creating a program where you will need to display the number of letters (A, b, C ..Z; a..z, a, â, ã) present in a String. I'm using the following code: function ContarLetras(Str: String): Integer; var Ret, i: Integer; begin Ret:=...
asked by 28.07.2018 / 02:04
1
answer

How to capture windows status (suspend / hibernate) via Delphi code

I would like to check the status of windows (suspend / hibernate) before performing an action. Example if suspenso=true then //executa algo Thank you in advance.     
asked by 23.08.2018 / 22:06
2
answers

Changing the TControl Enabled activates the click event alone

Talk to people, By changing the (TButton) button to disabled within an event, it triggers another event. procedure TFormulario.OnButtonExecutarOperacaoClick(Sender: TObject); begin //... //aqui está o problema //a função abaixo é sinc...
asked by 12.04.2018 / 23:25
1
answer

Error while compiling on delphi: expected BEGIN but received UNIT

I try to compile and this error appears: expected BEGIN but received UNIT at line 9 follow the code. Unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls, Spin; con...
asked by 05.10.2018 / 03:05
2
answers

TOpenPictureDialog does not take the path to the Images folder

I have in my form a TOpenPictureDialog component to open the Images on a system, but instead of taking the full path of the image file it only takes the alias. Ex How do I need: ' C: \ Users \ User-03 \ Pictures \ File.jpg How it...
asked by 05.10.2018 / 21:23
1
answer

How to call a procedure from the inherited form through the standard form?

In my Delphi 7 application, some Runtime objects are created in the default form, such as buttons to handle registry, procedures, and common functions. There is one standard form of queries, another for editing records and one for reports. The s...
asked by 26.04.2018 / 21:49
1
answer

How to finalize the process of the executable itself with Delphi? [duplicate]

I've already posted a thread here in overflow on a problem I'm having with the TWebBrowser component, when I use it the application does not end, it stays in the windows process list, it's as if it was waiting for the ActiveX component to be r...
asked by 28.02.2018 / 22:36
1
answer

Custom DB Grid with webservice data

I'm creating a simple system to test the operation of Delphi with WebService REST, the first test is a search of data in the database that in this case is working everything right, only that when the data is loaded in the DBGrid the visualizatio...
asked by 05.02.2018 / 12:59
1
answer

Access Delphi XE5 Free Market APIs

I'm trying to make an application in Delphi to integrate the ERP to Free Market, and when using the REST Debugger (for testing) this is returning me an HTML and not Json, has anyone ever gone through this? If you use Postman it returns the co...
asked by 11.10.2017 / 19:35
1
answer

Add values in the cells in the StringGrid

I would like that when I click on a cell of StringGrid I could add a number and pressing next to it would jump from cell to cell, much like excel , is it possible to do this with this component? > I've tried using keypress ,...
asked by 26.09.2017 / 01:01