Posts by Daniel Fernandes • 235 points
7 posts
-
1
votes0
answers40
viewsQ: Databound values of an object for Textbox
How can I databound an object to form fields? The idea is to always fill in the "textBox1" field to update the "Name" value of the objClient automatically. I know by direct assignment it works.…
c#asked Daniel Fernandes 235 -
4
votes3
answers328
viewsQ: Format integer value in "000" format
In vb6 used the following line of code that allowed formatting the value "1" to "001" Format$(Nivel, "000") In C# I am using the following with similar nomenclature. string.Format("000", 1); However…
c#asked Daniel Fernandes 235 -
4
votes1
answer196
viewsQ: VB6 always executes the 2nd function even though the 1st is False
The if in VB6 always executes the 2nd function even validating that the 1st is False, C# does not execute the second function in case the first one is already false. How can I get the vb6 to perform…
-
0
votes3
answers46
viewsQ: Group separate table records
How can I get the number of identical names from 2 tables, customer and suppliers. Ex: the result is Name. Qtd Joao. 2 Peter. 15 Michael. 7 The code I have is this. Select nome from fornecedores…
sqlasked Daniel Fernandes 235 -
1
votes2
answers4982
viewsA: How to count the number of records of a selection in a table
@Diegosoares You can use the following query: 1- Return total records select Especialidade = Count(distinct speciality) from employees 2- grouped by type of expertise select Qtd = Count(distinct…
sqlanswered Daniel Fernandes 235 -
0
votes2
answers591
viewsA: How to pick up the selected item
Good evening, use the following code to get the grid value on the selected line: gvDados.gettext(colunaID,grelha.activerow) The id column is always the same, the line is currently active. In your…
-
2
votes2
answers67
viewsQ: What is the best performance in comparison of string sizes?
What is the best performance option? And memory allocation? Using option 1 or 2? String text = "ola mundo"; Option 1: If ( Strings.len(text) > 0 ) {} Option 2: If ( text != "") {}…