Posts by Fabio Macieira • 39 points
4 posts
-
0
votes2
answers1779
viewsA: Function to calculate calories
function caloriasDeTrote(numeroDeVoltas) { var quantidadeDeCalorias = 0; for (var i = 0; i <= numeroDeVoltas; i++){ quantidadeDeCalorias += 5 * i; } return…
-
-1
votes10
answers5627
viewsA: Function that returns if one can go to the database with true/false?
Have to declare every day of the week to work. function possoIrAoBanco (diaDaSemana, horaAtual) { var segunda = "segunda-feira"; var terca = "terca-feira"; var quarta = "quarta-feira"; var quinta =…
-
0
votes5
answers38715
viewsA: Calling a form and closing a form in the same event
Use the line this. Hide(); to close your LOGIN screen, as in the example below. private void iniciar_Click(object sender, EventArgs e) { Frm1 newForm2 = new Frm1(); this.Hide(); // use dessa…
-
4
votes3
answers66206
viewsA: Is there a shortcut to indenting the code in Sublime 3?
Go to the menu Preferences -> Key bindings Two tabs will appear, in the right tab(custom), you inform the code below. {"keys": ["ctrl+k+d"],"command": "reindent"} Or another to your liking, if…