Posts by Matheus Ribeiro • 4,942 points
219 posts
-
0
votes1
answer1085
viewsA: doubt c# label show
Just exchange MessageBox.Show("o numero" + numero1 + "e o maior"); For label1.Text = ("o numero" + numero1.ToString() + "e o maior"); Edited if (numero1 < numero2) { MessageBox.Show("o numero " +…
c#answered Matheus Ribeiro 4,942 -
-1
votes2
answers2342
viewsA: Use IF function in SQL as if it were excel
What you seek I believe this to be select iif(sexo = 0, 'Feminino', 'masculino') from clientes Edited I corrected the command above As quoted at that link, the IIF(condition, answer, answer) command…
-
1
votes3
answers2628
viewsA: script for printer installation automation
It would be good for you to create a VBS Inside the VBS you can make a loop like the below: Do While X > -1 'Aqui dentro você executa os blocos que você já fez set objSh =…
-
3
votes1
answer10554
viewsA: Generate Mysql Workbench Script
There is this simple procedure Database Export via Mysql Workbench where you export your bank using the Data Export and a file is generated in the place where you inform. Procedure 1 - Access the…
-
0
votes1
answer41
viewsA: Limiting functions according to access level
Yes it is possible, the ideal would be to create a control class for this, but if you prefer the variables, after calling the menu just make a select in the user table bringing the data you need and…
-
3
votes1
answer667
viewsA: Firebird SQL and Union ALL without duplicating items
Instead of using the sub-querys as you are doing here for example: SELECT TABNOV.NUMERO_PROCESSO, TABNOV.NUMERO_PROCESSO_ORI, TABNOV.DATA_DISTRIBUICAO, TABNOV.DATA_ESCRITORIO, TABNOV.STATUS,…
-
1
votes1
answer90
viewsA: (SQL) Add "Count 0" when no record
You need to use the left join select T.nome as nome ,count(I.id) as qtd ,T.limiteDuplas as limite ,T.descricao as descr from torneio T left join inscritos_torneio I on T.id = I.idTorneio where…
-
0
votes2
answers770
viewsQ: Check subprocess in implementation
When my application starts I need to check if a third party program is running, if not, I need to start it. The problem is that the program made in Java and when it is running it runs within Java…
-
2
votes2
answers688
viewsA: Delete a line in Dbgrid without deleting in Database
You can throw the data into a Tfdmemtable instead of working directly on the query, then you link the Tfdmemtable in Dbgrid. To delete the records you want just remove them from the Tfdmemtable and…
-
0
votes1
answer187
viewsA: What is the safe way to work with Tricheedit Database?
It would not be right to record the contents of f_richedit.RichEdit?? fdm.RichStream := TStringStream.Create(fdm.zqrAux_Aet_TextoDiversas.AsAnsiString);…
-
3
votes1
answer78
viewsA: How to change MYSQL database when 1 month registration date expires
From a query about creating events in Mysql An example you can see here, and try to fit into your problem How to create a daily event in Mysql 5.6? (A question asked here on the website) Edited: To…
-
1
votes1
answer800
viewsQ: Combobox in firemonkey without using Fdquery
I have a states combobox in my register, where I connect via livebindings with an Fdmemtable to save the data in the database. How could I get the index item of the selected item in the combo? The…
-
0
votes1
answer895
viewsQ: Application opens and closes
After I updated my phone (ASUS Zenfone 3) for Android My apps open and close when I try to debug... I can only debug if I delete the app from my phone and compile again, does anyone know how to fix…
-
0
votes0
answers397
viewsQ: Using Chromium in firemonkey
I was shown the Chromium Cef4delphi component and in tests I saw that it works very well in VCL but in firemonkey (FMX) it does not work. I would like to know if it is possible, using the Chromium…
-
1
votes0
answers38
viewsQ: View from the Masterdetail
How do I display Masterdetail above Toolbar? An example of what I want is the Masterdetail of the Play Store app that even appears in the bar that is the time. <?xml version="1.0"…
-
1
votes1
answer164
viewsQ: Dragging Listview item
Would anyone happen to know how to drag a Listview item one way or the other? Preferably a way that serves Cross-Platform Android/IOS
-
1
votes1
answer307
viewsQ: View JSON data in Listview
Guys as I load a Listview with the result of a method that returns an object already loaded with JSON? Method that loads object with JSON namespace MeuProjeto.ViewModels.jsonModels { class JSON {…
-
0
votes1
answer116
viewsQ: Dynamic method for opening screens
I am creating a method to open any screen I pass in the parameter. I did this method: public async Task NavigateTo(Page page) { await App.MasterDetail.Detail.Navigation.PushAsync(new page()); } But…
-
1
votes1
answer269
viewsQ: How to pass a class as a parameter in another class and return a variable that is within a Thread
I work with Delphi and I decided to learn how to make java applications, and I came across a problem. I have this class public class Dados { public void getJson(final String url) { new Thread(new…