Questions tagged as 'delphi'

1
answer

Adjust columns of a DBGrid

I have a problem getting a function where I do the same thing as Excel (Resize columns). For example: Lookatthehuge,unnecessarycolumnspacing.Iwouldlikeafunction-basedsolutiontobeabletoperformREDIMENSIONAMENTOofthecolumnsafterthesearch.Inc...
asked by 13.11.2015 / 11:56
1
answer

Adding items dynamically in ClientDataSet

How can I make the text of a% colon separated by a semicolon (;) as a record in TMemo . Example:    Code, Category, Phrase, Author       1; Motivational; Phrase 1; Author 1       2; Proverb; Sentence 2; Author 2       3; Dictation...
asked by 11.12.2018 / 00:33
1
answer

CheckListBox - how to pass a checklisbox to a function in Delphi

I need to create a function where I step into the function a CheckListBox and this function will store in a variable the values of the checklistbox. function PegaDescricao(checklistbox .......... ) : String;...
asked by 06.12.2018 / 14:27
1
answer

Use the values of an array variable of a procedure in the main routine of the algorithm

program nome_jogadores_futebol_basquete_volei; {$APPTYPE CONSOLE} uses SysUtils; procedure futebol; var i: integer; jogador: array[1..11] of string; begin for i := 1 to 11 do begin writeln('Digite o nome do joga...
asked by 28.07.2018 / 01:10
1
answer

Convert java code to pascal

I need to convert the following java code to Pascal / Firemonkey: The main questions are: How to extract each pixel in firemonkey? How does this code work: slice |= (byte) ((v ? 1 : 0) << (7 -b)); Follow the complete...
asked by 14.09.2016 / 14:32
2
answers

API mercadolivre does not return JSON

When I paste the link address in the browser I see that the restfull API of the free market returns the data in JSON format, but when accessing the same link using the RestDebuger that comes with Delphi (Tools / Rest Debuger) I can only receiv...
asked by 12.01.2017 / 04:03
2
answers

Check smartphone horizontally

How to check in a certain situation if the smartphone is horizontal?     
asked by 05.08.2016 / 18:14
3
answers

Service done in Delphi "kill yourself" or give Stop

I would like to know which command to use for a Windows "kill yourself" service. Because it is a service I do not have the Application.Terminate option. Home I need to check a certain date, and if that date has passed, the service shou...
asked by 08.07.2016 / 22:08
2
answers

Database error Missing Driver Name property

I'm doing a system in Delphi 2010 with Firebird 2.5 that I select a database and I need to pass the local path to my Database on my Sqlconnection. procedure TFormImportDados.btnBuscaArquivoClick(Sender: TObject); begin OpenDialog.Execute();...
asked by 04.07.2016 / 16:36
1
answer

Adding Occurrences in a Memo

I have the following items in a memo: ns ns basica+textura+Al ns ns ns ns basica+textura+Al basica+textura+Al basica+textura+Al basica+textura+Al ns ns ns I would like it to add how many times ns appears. I tried using memo1.Lines...
asked by 23.06.2016 / 16:11