Questions tagged [delphi]
Delphi is a language for rapid development of native Windows, macOS, Linux, iOS, and Android applications through use of Object Pascal. The name refers to the Delphi language as well as its libraries, compiler and IDE which is used to help edit and debug Delphi projects.
Delphi tDataSet.Append seems not to call Post. In its reference it says
Dataset methods that change the dataset state, such as Edit, Insert, or Append, or that move from one record to another, ...
I am doing a SQL query on delphi like the one below:
qryPessoas.Open('SELECT * FROM pessoas_login ' +
'JOIN pessoas ' +
'ON pessoas.id = pessoas_login.id_pessoa ' +
'WHERE cpf ...
Every time that I try to set the caption of this variable, it gives me "unspecified error" and I have concluded...
I've tried to set the caption straight from the TADOQuery and by assigning the value ...
I'm unable to double underline a TQRLabel which I'm using to display a sum.
I already tried to draw the bottom frame of the TQRLabel and underline the font. But doing it that way the lines aren't the ...
I have a function for generate the sha256 for a stream. This function take around 5 seconds for 100 MB FileStream. Any tips for make it faster?
function GetStreamToHashSHA256Hex(const Content: ...
I use NewXMLDocument() to produce an XML document of my data.
There is a SaveToXML() method to save the document to an XML-formatted string variable.
The problem is that the XML string does not ...
I need to run a SELECT statement where the column names are variable, as follows:
query.SQL.Text :='SELECT A.:COLUMN '+
' FROM A ';
I am working with Delphi 10 Seattle.
Following samples we developed a REST Client that communicated with a remote server to consume Rest API.
The REST Client works end until we tried to set a custom ...
if anybody used this awesome vcl Native Excel I need your help.
I have installed Native Excel Delphi XE3. This lib can export dataset to Excel nativly without excel installed. Question i have dataset ...
I modified @Stefan Glienkes example from Notify the TObjectList when Object changed to use IList, since I am using interfaced objects in my list.
In the event handler, I can handle caAdded and ...
well, I am working with Delphi Rio and FastReports VCL 6 and I need to show the report's designer inside a Delphi Form. the report's designer is a form itself, and I managed to show the designer form ...
I will try to explain my problem with the well known TAnimal example.
In my example i have a Combobox1 with 2 possible values: "cat" and "dog".
I have a TCat and a TDog class inherited from TAnimal.
Im writing a Service-Application that should monitor one or more ExchangeMailboxes for incoming Mails to perform some action with those.
The Service will run in different environments, which means i ...
I have a Tcxcombobox with dropdownliststyle property set to IsFixedList, I am getting a red dotted line around the item when i go through the items in combobox and the same line appears around ...
In Delphi, I see several similar functions that can be used to allocate memory, such as GetMem and AllocMem. What are the differences between them?
I read the document and only find that GetMem will ...
I set the ConnectionTimeout to 120000 (2 minutes) and the ResponseTimeout to 60000000 (1000 minutes).
The server is a servlet written in Java and the session timeout there is 30 minutes.
Despite the ...
I'm using Delphi 5. I define an array of byte, as follows:
Buffer: Array of BYTE;
How to convert it to a PByte pointer?
the title might be a bit off but I really didnt know how to put it in a title.
The situation is as follows.
There are 3 applications.
1. A stand alone windows application
2. A webservice that runs ...
I am having a problem with null cookies being received on my Java back end when I can see they are not null and are being passed from my Delphi, Indy10, front end. This does not happen every time. ...
the code i use is as below:
saSecurity.nLength := SizeOf(TSecurityAttributes);
saSecurity.bInheritHandle := True;
saSecurity.lpSecurityDescriptor := nil;
I am using TRichEdit to hold the body of an emailing client. I've given the user simple formatting capabilities (bold, italic, underline, left, centre and right paragraph alignment and bullets. This ...
I have a really frustrating behaviour of Delphi Tokyo. I have moved from Delphi Xe7 and the other frustrating error (out of memory) is gone (or it seems till now), but a new one appeared.
When I ...
How can I make this code faster? the string can contain characters such as ", .?#" and possibly others.
Const Nums = ['0'..'9'];
function CleanNumber(s: String): Int64;
Var z: Cardinal;
Call Delphi DLL Function from C#
Marshalling of Data Type (array of char / array of integer)
_InputPW = array[0..39] of char;
_InputPW_Len = array[0..1] of integer;
I am trying to create a anonymous procedure to a OnSetText Field event.
I know I can do it creating a separate procedure.
But, I´d like to create it using anonymous procedure.
I am trying the next, ...
I have an array of TBoek and and a loop that is supposed to assign values to each of the elements of the array. What happens instead is that the array ends up with the exact same values in each index. ...
I created data collector set from delphi code by using logman command.
But not able to start data collector set by using logman start command.
The start command results the following error
I need to start a service for Android Oreo in foreground but I can't find an example how to do this in Delphi 10.3 for the app and for the service.
I found hints that I have to use ...
I had previously asked a question here. replace-cidimage-refrences-in-email-body The question came about because I am writing a basic email archiver/ archived email viewer.
I had saved the body using ...
i am trying to navigate on https://ds.opap.gr/web_soccer/results.html with a twebbrowser and not succeed.
I already tried silent = true and Registerasbrowser = true.
I only get the black logo with ...
I am accessing a TJSONValue in Delphi(using REST components and Google Books' API). I want to know how many elements are in the array: 'items'.
This is the format of the JSONValue:
I'm work on a program for school (Cinema app) but I have a problem with my array. My app closed but nothing is showed.
lets assume I have a generic class like this:
TGenericClass <T> = class
fValue : T;
FId : integer;
property Value : T read fValue write fValue ;
property Id : integer ...
constructor TCoords.Create(const AX, AY: Integer);
has been confirmed malfunctioning in both Linux Lazarus 2 and Windows ...
I am using a brother label printer which depending on the paper set to use It may or may not be able to print in color (paper 62mm X 100mm let you use color but 29mm X 90mm only allows monochrome).
I would like to examine the exception in the debugger.
When I have
except on e:exception do
This is trivial, I can just examine the e variable
But, many exception handlers do not have an on e:...
I am trying to get a Product Review Rating through eBay's Browse API. Here is my code for this function:
sHeaders := TStringList.Create;
sHeaders.Add('X-EBAY-C-ENDUSERCTX=' + '"affiliateCampaignId=' +...
How to use refind to remove TADOConnection ConnectionString property from dfm? How to use refind to move TADODataset locktype property with ltReadOnly value to TFDQuery UpdateOptions readonly property ...
I have a problem with the small icon in push notification on Android devices.
The icon shows black.
I have followed the steps indicated by pudnivec74 in this post How to change small icon image in ...
I need to use different procedure depending on the Edittext.text
i need to call ProcessA(value: string); with Parameters of last 4 Char of string if Edittext.text's first 4 char are string and next 4 ...
I would like to simplify the following code in Delphi XE6 on Windows, which becomes unmaintainable as I am adding more and more types of components.
Portability note: I would like to use the ...
I have a situation like the following:
IMyInterface = interface
procedure MyProcedure; stdcall;
TMyOBject = class(TInterfacedObject, IMyInterface)
When I read the contents of the HTML page generated using TWebBrowser (design mode) for example using this code:
function GetHTML(w: TWebBrowser): String;
Result := '';
In VCL this is how i make a single image from two images while creating space between them:
procedure TForm2.Button1Click(Sender: TObject);
I'm using this code:
str := ExtractFilePath(ParamStr(0)) + '\Connection.ini';
to get the path of an .ini file, but I want to go up by 2 directories, so the .ini file doesn't sit in the DEBUG folder.
After finishing my project (simple program with delphi),I had a problem with the screen resolution, My screen is up to 1024x768 the program is good, but the client screen reaches (1280x102) When I run ...
I have a TRichEdit control on my Delphi form, and I'm assigning a background colour to certain parts of the text using the perform method to send a windows message to the control. (Text is selected ...
I have an application that sometimes fails to obtain the path for the AppData folder.
The situation seems only to occur on our Citrix server farm and not for every user and not all the time (I was ...
I want to separate a string list by events, see below list.
CallerIDName: IT ...
After installing Delphi 10.3.1 RAD Server (EMS modules) in Ubuntu Server 18.04 LTS , I deployed and tested a simple (with no database access) Delphi RAD Server application and it worked fine.