All Questions

2
answers

Skip seconds in the MySQL time field

I have a field in my table of type time , where I save my time. The problem is that it is saving like this: 10:30:01 , how do I save it just the hour and minutes. That is without the seconds? The field is thus in BD hora time D...
asked on 29.07.2016 / 15:27
2
answers

Calculate the factorial by reference passage

I am studying pointers I am trying to calculate a factorial of a number, but the result is a totally different value than expected. Here is my code #include<stdio.h> #include<stdlib.h> void calulcafatorial(int num, int *fatorial);...
asked on 03.01.2018 / 11:34
2
answers

.empty () in javascript, how to do it?

I'm using a preview script for images created with jquery, however I want to accomplish it in Javascript Vanilla, I'm looking for a way to override the variableQualquer.empty (); but I did not find, how can I replace this command? JQuery code...
asked on 04.05.2017 / 22:21
1
answer

Condition for verifying null variables does not work

I'm developing an ASP (Classic) page and on this page I have this: <%if(textocontrato) = "NULL" Then%> <td >Texto Contrato</td> <td ><input type="text" name="textocontrato" value="<%=textocontrato%>" size=30 m...
asked on 19.06.2017 / 13:20
3
answers

How to replace the number of letters of a word with a character?

I'm doing a hangman game, let's suppose I type the name "john" in a text box, shortly after I press a button and I want it in the "text 2" box to appear " _ _ _ _ ", then I want the same number of underlines to appear as the number of letters....
asked on 03.06.2017 / 20:40
2
answers

What code should be used to focus on a TextBox?

What code should be used to focus on a TextBox? I am creating a system, where it is necessary that when the client press ESC, the focus of the textBox is lost. How do I do it?     
asked on 03.07.2017 / 19:27
2
answers

How to print text in the same line in Python

list = open("list.txt", "w") list = list.readlines() for i in list: print i I wanted to print i on the same line without getting down, type replacing the current word     
asked on 26.05.2017 / 20:14
3
answers

Is it possible to offer return options in a method?

As I already know there is overload in creating the methods, which are example, a method where you have the option of passing 2 or 3 parameters calling the same function: //Soma 2 numeros public int Somar(int a, int b) { return a + b;...
asked on 14.08.2017 / 20:24
2
answers

How to break the line?

Nome = input("Digite o nome do cliente: ") DiaVencimento = input("Digite o dia de vencimento: ") MêsVencimento = input("Digite o mês de vencimento: ") ValorFatura = input("Digite o valor da fatura: ") print("Olá,", Nome, "A sua fatura com venci...
asked on 26.04.2017 / 20:44
3
answers

Clear Field with JavaScript

I'm using this function below, to validate the date in all date type fields of the form, I call the function in the onBlur event of the txt. function VerificaData(digData) { var bissexto = 0; var data = digData;...
asked on 11.08.2017 / 22:52