Posts by João Silva • 308 points
11 posts
-
0
votes4
answers181
viewsA: Complete numbers with Javascript
Simply do the . length of the string, and at the end if it is less than the desired number, for example: if(input.length < 54) makes += the number of 0s that can be done with a cycle is 54 -…
javascriptanswered João Silva 308 -
0
votes1
answer145
viewsA: Adjust Visual Studio 2017 Windows
Try this: Window -> Reset Window Layout…
visual-studio-2017answered João Silva 308 -
2
votes1
answer3058
viewsQ: SQL distinct with sum
Hello, I have a problem making a sum in a query. Example and query results: select DISTINCT t.ID, t.nomeuc as "Nome UC", t.tipoturno as "Tipo Turno", a.num_presencas as "Número de Presenças" from…
-
0
votes2
answers1079
viewsA: Permission for android app
You need to sign the app’s APK. See this link: https://developer.android.com/studio/publish/app-signing.html You can also follow this answer: https://stackoverflow.com/a/4853025/2486919…
-
-1
votes1
answer66
viewsA: How do I use a "or" no while in C
I think your problem is in the shooting method, this inside a "do while", whenever you enter the method and the user introduces a valid coordinate these to do: else if (tabuleiro[i-1][j-1]==-1)…
-
6
votes4
answers3416
viewsA: How to do a search to know if a string is inside a vector in C#
Uses the Contains: string[] nomes = { "misael", "camila", "fernando" }; if(nomes.contains(txtbusca.Text)) MessageBox.Show("nome encontrado"); else MessageBox.Show("nome não encontrado");…
-
-2
votes1
answer2750
viewsA: Rounding up javascript float
Try this: Math.round(num * 100) / 100 Source: https://stackoverflow.com/questions/11832914/round-to-at-most-2-decimal-places-only-if-necessary Or in your case, do something like: var arrendondar =…
javascriptanswered João Silva 308 -
1
votes2
answers3010
viewsA: How to change pages on Ionic V2
Try this: pushPage() { this.navCtrl.pop(); this.navCtrl.push(RegisterPage); } Also check if the page is defined in app.module.ts
-
4
votes1
answer83
viewsA: Conditional "on" and "off" on a C#
I didn’t understand the part about putting 2 functions in a bathroom but that should do it. private void Bnt2_Click(object sender, EventArgs e) { if(bnt.Enabled) bnt.Enabled = false; else…
c#answered João Silva 308 -
1
votes3
answers1211
viewsA: Remove last character from a string when the character is a blank
Uses the Trim() function, for example, name.Trim() takes the start and end space. https://www.tutorialspoint.com/java/java_string_trim.htm…
-
0
votes2
answers1190
viewsA: How to assign a java variable to Document.getElementBy Id
I don’t know what mistake you’re making, but try it this way: function talk() { speaker.speak("pt", document.getElementById("text").value); // ve se o problema não é esta linha, comenta-a para…