Posts by lukkicode • 99 points
12 posts
-
1
votes1
answer138
viewsQ: Delphi Computer Shutdown Problem
I am using the following code to shut down the computer via Delphi program: //Adicionar à cláusula Uses, Shellapi e digitar os parâmetros abaixo no clique de um botão por exemplo: // Desliga o…
-
0
votes1
answer102
viewsQ: Stopwatch of Idle Time
I have a Label component that shows the number of files in a folder. While downloading multiple files the number displayed by Tlabel changes (as the files in the folder). How do I stop when label…
-
0
votes1
answer178
viewsQ: Adding items dynamically in Clientdataset
How can I put the text of a TMemo separated by semicolons (;) as records in TClientDataSet. Example: Code;Category;Phrase;Author 1;Motivational;Sentence 1;Author 1 2; Proverb; Sentence 2; Author 2…
-
0
votes1
answer78
viewsQ: Listing Codes from a Particular Vendor in Excel
I have a Product Table with Code and Supplier. I would like to know how can in the vendor table list all the codes from a specific vendor. I can do this only through formulas in Excel? Example…
-
0
votes1
answer142
viewsQ: How to detect current Left and Top of Form when dragging (in Delphi)?
I need to detect the Left and Top value of the Form (in real time) by dragging and displaying the values in Spinedits (Sedtx and Sedty). I am using the code below, but without success: private {…
-
0
votes3
answers1538
viewsQ: Count Number of Letters in a String - Delphi
I am creating a program where it will be necessary to show the amount of letters (A, b, C ..Z; a..z, à,â,ã) present in a String. I’m using the following code: function ContarLetras(Str: String):…
-
1
votes1
answer127
viewsQ: Changing the Output of a <form> - Redirect to Another Upload Page
Hello, I have a form and I’d like to know how to change his results. Example: both when the form is successfully completed and when an error occurs it redirects to a page of my choice. I’m using the…
-
0
votes1
answer258
viewsQ: Create Powerpoint presentation from Delphi (Oleobject)
I’m trying to generate a Powerpoint presentation from a Memo, I found a code on the internet that uses Oleobject, but it’s not working. What is incorrect? (I use Delphi 10.2 Tokyo) uses…
-
2
votes1
answer217
viewsQ: Abort Program Exit Procedure
I am using a code to ask the user if he wants to save the changes before leaving the program (Yes, No and Cancel buttons). The problem is that when the user clicks to save before exiting (Yes…
-
1
votes1
answer1875
viewsQ: Adding bulk items/subitens in Listview
Good afternoon, I’m trying to add bulk items to a Listview. I need to put the text of a memo separated by semicolons(;) as items and subheadings in this listview. Example: Text typed in Memo: João…
-
1
votes1
answer85
viewsQ: Replace words when importing in Listview
I’m importing a file .DAT in a Listview, I need that before the import is done the program looks for the expression {keyword} in the items and that the same expression is replaced by the text of a…
-
1
votes1
answer244
viewsQ: Google Search + Delphi 10.2 Tokyo Results
I looked for Apis Google to create a code that shows Google results in apps Delphi 10.2 Tokyo, but I didn’t find Apis recent. I need the following, the user type in a Edit the term you want to…