All Questions

2
answers

SQL SERVER - Convert String in Days

How can I convert this string into days? Example: return "2 days and 2 hours"? SELECT '50:00:00'     
asked on 20.07.2018 / 20:53
2
answers

How to select fields in a query in lambda expression?

Through% of LINQ% I can select which fields will be displayed in the query, for example: var subCategorias = from s in db.SubCategoria join c in db.CategoriaProduto on s.id_categoria equals c.id_cat...
asked on 09.06.2016 / 02:47
1
answer

Why does print_r print before echo?

I have the following array : $array = array(10,20,30); print_r($array); Output: Array ( [0] => 10 [1] => 20 [2] => 30 ) If I print with echo before print_r : echo 'primeiro: '; print_r($array)...
asked on 07.05.2018 / 18:46
2
answers

Comparison of variables of different type with conversion returns incorrect result

I have the following code var Valor1: string; Valor2: Double; begin Valor1 := '150.15'; Valor2 := 150.15; If StrToFloat(Valor1) = Valor2 then ShowMessage('Iguais'); end; In this situation, sometimes Delphi understands that t...
asked on 14.06.2018 / 18:14
3
answers

How do I make a conditional if compared to only the last 2 digits?

I'm doing a project in Visual Basic but when the user types a string that will be 5 the maximum ex: UF052 I want to make a if where it will be compared. If textbox1 = "UF052" the Comando End if But I do not want to compare all the...
asked on 11.04.2018 / 10:17
2
answers

C # | Raise the Console Application window

How do I increase the Console Application window in C #? I use Visual Studio 2017 Community. My program will be done in Console Application, I need to change the size of the Console window being generated.     
asked on 07.06.2018 / 16:38
3
answers

Why is a named vector inside?

I would like to know the function of using a name within a vector? char chave[NUM_LETRAS + 1]; int frequencias[NUM_LETRAS]; int frequencias2[NUM_LETRAS]; char codificado[MAX_STR]; char descrip[MAX_STR];     
asked on 24.04.2018 / 21:55
2
answers

How do I show the files that need to be shared?

How do I show files that need to be "commented"? Or, is there a program for Linux-based distro that behaves like the Eclipse Git module, which shows me the files that need to be added and "done"?     
asked on 31.01.2014 / 20:25
1
answer

The function to get the day of the week of PHP has limit?

I'm making a calendar using PHP and JS and it worked perfectly between the year 1902 until 2037, because from 2038 the function to get the day of the week in PHP returns an incorrect value. Is there any specific reason for this? Follow the co...
asked on 09.07.2018 / 04:41
2
answers

SQL - UPDATE double with double where

Next, is it possible to do two update-where together in the same query? I'll explain, what I wanted to do is this: UPDATE usuarios SET nome = "Matheus Silva" WHERE id = 1 AND UPDATE usuarios SET nome = "Lucas Silva" WHERE id = 2...
asked on 18.01.2016 / 05:06