Posts by Diego_F • 321 points
27 posts
-
2
votes1
answer29
viewsA: How to Disable one of the items in a Tlistbox!
According to the documentation, the property Itemindex, specifies the Index of the Item selected. So, it returns an integer and not the Item itself. To recover the item you can use the method…
-
2
votes2
answers139
viewsA: What’s wrong with my code?
If you give a F12 and watch Console tab of the browser you will see that your code is giving the following error. Uncaught TypeError: Cannot set property 'innerHTML' of null Try to take the figures…
-
1
votes1
answer24
viewsA: The result is always the same, as if the conditions were equal
If you give a console.log in the question you will see that it returns the whole Input element, and according to your if, it falls into the "Strange Olae'". Use pergunta.value in the if.…
-
3
votes1
answer81
viewsA: What’s the difference between Owner and Parent?
The Parent of a Tcontrol is the control that contains it, for example, if three radiobuttons are inside a Groupbox then the Groupbox is their Parent. Already the Owner indicates the component…
-
0
votes1
answer33
viewsA: How to know which supplier provides more products by returning the supplier’s name?
You can use the command Group By to bring the results grouped by supplier and a Order by to bring orderly. So for example Select l.razaosocial AS Fornecedor, Sum(p.quantidade) AS Qtd FROM produto p…
-
0
votes2
answers205
viewsA: How to use IN in Filter from a Clientdataset?
The problem was the filter expression, worked after I used it as follows: Filter := NOT (id IN ( 22 , 43 ) )
-
0
votes2
answers205
viewsQ: How to use IN in Filter from a Clientdataset?
According to the documentation of the Embarcadero I can use IN in the Filter of a Clientdataset, see example taken from the documentation itself: Country IN (SELECT Country from Country where…
-
0
votes2
answers59
viewsA: Select record between the first day of month X and the last day of month X
If you have a date you can use the function Month and Year mysql. SELECT * FROM tabela WHERE MONTH(campodata) BETWEEN MesInicial AND MesFinal…
-
0
votes0
answers13
viewsQ: Is it possible to view Deleted Repository Log in Tortoise SVN?
I need to search the log of a file through the TortoiseSVN to compare previous revisions, however, this file has been changed from repository recently and unfortunately I no longer have the old…
tortoisesvnasked Diego_F 321 -
1
votes1
answer188
viewsA: How to delete the line in memo according to the amounts of Numbers in Delphi?
The N you are using to validate this out of the loop that makes the interaction. Try it like this: procedure ApagaLinhas; var cont, N: Integer; begin cont:= 0; while (cont <= Memo1.Lines.Count -…
-
0
votes3
answers695
viewsA: How to create a JSON Object in Delphi
Instead of using LogMem.Text:=TJSON.ObjectToJsonString(objeto); Try LogMem.Text := objeto.ToString; or LogMem.Text := objeto.ToJSON;…
-
2
votes3
answers695
viewsA: How to create a JSON Object in Delphi
From what little I know, it’s missing instantiating the object before using it. Try var objeto: TJSONObject; begin objeto := TJSONObject.Create; try objeto.AddPair('nome' , nome_evento);…
-
0
votes2
answers79
viewsA: SQL Do not display rows from a duplicate column
A GROUP BY C.CLI_ID would solve the issue of not displaying more than once the line of a same customer(I think). Although I don’t know if it’s a good idea in your case 10469 2020-07-31 05:39:23…
-
0
votes2
answers27
viewsA: Set a specific order in the query
You can bring a Fictitious sorting field in your query and sort by it. SELECT IF(access_level="owner",1,IF(access_level = "administrator",2,3))AS Ornedacao FROM group_memberships ORDER BY Ordenacao…
-
2
votes2
answers46
viewsA: I’m having trouble closing a form( in the main form case) when I open a second form
The Line after Showmodal only runs after you close Form4, so you are not running Hide or Close on Form1. Replace with Form4.Show; and test again.
-
0
votes1
answer92
viewsQ: What is the difference between passing nil in Synchronize/What is the difference between a Task/Thread?
In most examples I found the structure of a basic Task is: procedure var FTask : ITask; begin FTask := TTask.Run( procedure begin //código a ser executado dentro da Task;…
-
0
votes1
answer354
viewsA: Firedac Fdquery with Mysql Transaction.commit and rollback does not work
Make sure your table supports transactions, if this is the case you do a test using "Start Transaction", "Commit" and "Rollback" in Fdquery1’s SQL, instead of using Fdconnection’s.
-
1
votes0
answers138
viewsQ: Generate notification in the Windows Sidebar for specific user?
I am using Redis Pubsub to create a Chat Desktop and would like to generate a notification in the Windows sidebar to a user when they receive a message. Searching the internet soon found the…
-
1
votes2
answers511
viewsA: Could not Convert variant of type (Olestr) into type (Double)
You are trying to concatenate a String with an integer. Conversion is required 'Your String ' + Inttostr(n1);
-
0
votes2
answers920
viewsQ: How to allow only numbers in an Edit?
I have the following code in my role IntegerKeyDown that is in formpai If not (CharInSet(KeyChar,['0'..'9']))then begin Key:=0; KeyChar:= 0; end; I call him in some Edits of the Sons. Works…
-
0
votes2
answers553
viewsA: How to load a Combobox in Firemonkey for Android
I managed to solve my problem differently While populating the combo with the description I populate a Stringlist with the ids. No change of Combobox I position the Stringlist in the same Index.…
-
-1
votes2
answers553
viewsQ: How to load a Combobox in Firemonkey for Android
I have an Edit and next to it a Combobox. The idea is that Edit displays the registration id and combo the description. And when changing the combo option also change the id on Edit. In the VCL to…
-
0
votes0
answers148
viewsQ: Problem closing app on Android when many screens are open
Before starting the App I need to do some validations, so I created a Splash screen where they are made. So to prevent the user to return to the Splash screen when he presses the back of the device…
-
2
votes1
answer626
viewsQ: Problems to capture Enter key on Android
I’m having trouble capturing the key Enter in the Android begin if(Key = 13)then ShowMessage('Você teclou '+ KeyChar);//Para testar se estava capturando algo end; I only get feedback by pressing the…
-
2
votes2
answers74
views -
1
votes0
answers53
viewsQ: Prevent redirecting to another page
Good Afternoon. The goal is that when the user clicks on a menu item, he loads the file containing a form into the "Other page". By the time this happens, the problem comes later. When I click on…
-
1
votes1
answer157
viewsQ: Fill the src attribute of an iframe and make it visible via jQuery when user click item
I have a web page with a navbar at the top and an iframe that loads another page below. The idea is that when the user clicks on the menu item via jQuery I fill the src attribute of iframe with the…