Most voted "object-pascal" questions
Object Pascal is a branch of Pascal derivative languages, supporting object orientation.
Learn more…33 questions
Sort by count of
-
14
votes2
answers2001
viewsDoes Delphi own a garbage collector?
Does Delphi have an automatic garbage collector? How does it work. If not, what tools can do this?
delphi memory memory-management garbage-collector object-pascalasked 9 years, 8 months ago Giovani 2,875 -
6
votes1
answer942
viewsRemove noise, dots and image strokes
I would like to know how I can process a captcha image to remove noise, strokes and dots. Here are examples of how you are and how I’d like you to stay. Original Image: Adjusted Image:…
-
5
votes3
answers2378
viewsHow to list files and subdirectories in Delphi?
I created a project in Pascal-Object and at a given time it should list all the files and subdirectories located in the Desktop tree, I found some examples on the WEB, but none was useful enough, as…
-
4
votes1
answer3054
viewsHow to use Windows variables in Delphi?
Hello, I’m creating a project on Delphi, However, it needs to create some files, it wouldn’t give a good impression if it did this where it is, so I need these files to be created in the temporary…
-
4
votes1
answer1342
viewsHow to leave a semi-transparent Delphi form?
Hello, to make it easier to understand see the example of the image below, thank you for reading my question!…
-
4
votes1
answer329
viewsHow to install the Tidhttp component in Lazarus?
I noticed that the Lazarus does not come by default with the component TIdHTTP, unlike Delphi, but I imagine it’s possible to urge the component somehow. How to install?…
-
3
votes2
answers755
viewsHow to display letters from removable disk drives in Delphi?
Hello, I need to have a "Combobox" display the letter of the volumes of the pen drives that may eventually be connected to the computer, how can I do this?
-
3
votes3
answers766
viewsHow to convert a String to Tnotifyevent in Delphi?
I want to change the Ontimer event from a Ttimer in my project at runtime, I tried as follows: Timer1.OnTimer:= ('close'); But Delphi reports this: (E2010 Incompatible types: 'TNotifyEvent' and…
-
3
votes1
answer556
viewsHow do I upload to an FTP site?
Hello, I have an FTP account on a domain, it is password protected but I need a Delphi application to upload files instead of Filezila and others. How can I upload files? I tried according to some…
-
2
votes1
answer1219
viewsHow to download from Delphi?
Hi, I created an application on Delphi, but she needs to download some files I have on a website, but I have no idea how to do this, please help me. Thank you for reading my question!…
-
2
votes1
answer1240
viewsHow do I install the Chromium package in Delphi?
I was using the Twebbrowser component which is based on Internet Explorer, but I have noticed that it runs disfigured HTML5 pages, I have heard about the Firefox package, but it did not run on…
-
2
votes1
answer297
viewsLazarus - Error running program with fpCEF
I’m having trouble following this simple tutorial building a Webbrowser using fpCEF. I downloaded the latest version of fpCEF straight from Github, for version 3.2526 of CEF, and its binaries I took…
-
2
votes3
answers953
viewsRead txt line and include ";"
I have a txt file whose lines have the following data: 0 02 020 0201 020110 Z DEMONSTRAR COMPETÊNCIAS PESSOAIS 1 Primar pela correção de atitudes This way I can not import the data either to excel,…
-
2
votes1
answer364
viewsHow to know when the computer will shut down/restart/hibernate/suspend in Delphi?
I have a system that works with websocket in Delphi with mORMot, when I restart the PC or when I disconnect it runs Onclose and Ondestroy and through that I can remove the callback of the logged in…
-
2
votes1
answer223
viewsHow do I change the path of my database when running the program?
I’m starting to program with the Delphi XE8 and using Firebird 2.5. I managed to implement my database and it’s working all right. The problem I’m facing now is that as I change from computers to…
-
1
votes1
answer303
viewsHow to put 3D effects in Delphi applications?
Hello, I have noticed that some applications in Delphi have graphic effects in the forms in such a way that as soon as the cursor passes over an image, for example, around it appears a ripple, I…
-
1
votes1
answer901
viewsFunction for popular Ttreeview only adds Childs to the first Node
I created this procedure to popular a treeview: procedure TFrmGerProfDock.Button1Click(Sender: TObject); Var Tables: TTreeNode; I: Integer; begin for I := 0 to ds.DataSet.FieldCount - 1 do begin…
-
1
votes1
answer688
viewsHow to read text files online?
I have a project done in Delphi and at a certain time it should perform the reading of a text file that is hosted on a website, however, I want this reading to be done online through a TMemo without…
-
1
votes1
answer737
viewsHow to check the INEXISTENCE of a directory on an FTP server in Delphi?
Use the Delphi and the Lazarus to create my applications, what should I do to check the non-existence of a directory contained in a FTP server? For example, when will you check the non-existence of…
-
1
votes2
answers865
viewsDirectory of Windows folders
I am developing an application that references local directories on my computer. If I try to run the application on another computer, the references get lost. nmArquivo :=…
-
1
votes1
answer418
viewsFrame Replication [Error: Component already exists]
I have a form in Delphi and I wanted to have a pre-created frame added dynamically several times by clicking a button. I’m trying through this code: procedure TMain.Button1Click(Sender: TObject);…
-
1
votes1
answer439
viewsHow to return an object from a bank in QTL(Mongodb)?
I currently have some objects in a Mongodb database. The structure is as follows. { "_id" : ObjectId("55cb9c666c522cafdb053a68"), "geometry" : { "type" : "Polygon", "coordinates" : [ [ […
-
1
votes1
answer647
viewsHow to insert equal objects or list of objects in Mongodb?
Example, I have the following JSON: { Casa:'b32', integrantes:{ pessoa: 'joao', pessoa: 'Maria', pessoa: 'Daniel' } } When you enter it into the database it looks like this. Apparently it is…
-
1
votes0
answers60
viewsAdding Records with Specific Data
Well, I’m currently working on a project that we use Clientdataset’s to communicate with the database. My problem is Next, I have a Receiving Report in the Export Sector, in which there are several…
-
0
votes1
answer761
viewsHow to put shade on a "label" in Delphi?
Hello, I was wondering how to put shadow on a "label" in Delphi like this image below:
-
0
votes2
answers2827
viewsHow to know if there is a line selected in Dbgrid?
How can I know if there is a selected line in my Dbgrid. In this case below: The pointer is selected in the dataset, but I wanted to know when the grid is this way: In this case it would be only if…
-
0
votes1
answer106
viewsHow to resolve problems uploading Tidftp to Object-Pascal?
I found a way to upload to my FTP server, but I try to notice that files over 1 KB arrive damaged, so I ask your help to solve my problem, the mode used in question was the image below, how to solve…
-
0
votes2
answers397
viewsDoubt to "check" a radiobutton by 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, the respective RadioButton be selected. I used radiobutton3.checked at the…
-
0
votes1
answer271
viewsLazarus depurador invalido
I installed: Lazarus 1.4.0/FPC 2.6.4 Lazarus Wince Cross Compile within folder C: Lazarus At Lazarus I made the following configuration: 1 -…
-
0
votes2
answers56
viewsUncheck Checkbox With Password Only
I have a system and in a precise part only support members can deselect a checkbox. I have tried several codes but there is always the same problem : The Checkbox by default when clicked it is…
-
0
votes1
answer98
viewsHow do I use sendmessage?
I’m getting the list of resource classes from another application but I can’t find Button, edits or Abels classes and I see that the application has these features. This is my code: procedure…
-
-1
votes1
answer395
viewsDelphi registry key permissions
Windows security settings often do not allow registry keys to be changed by the user. As is the case with the key: "HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT Currentversion Schedule Taskcache…
-
-1
votes1
answer641
viewsHow to delete directories containing subdirectories and files on an FTP server in Delphi?
I am for some time trying to make my application made in Delphi 2010 remove a directory on an FTP server, I used Tidftp for such a task with the command "Remove", but the process fails, because…