Posts by MFedatto • 579 points
11 posts
-
18
votes4
answers52318
viewsA: What is the difference between PUT and POST?
The post is a verb HTTP for data submission within the package on any type of request, very similar to get, changing only the location and size available for data storage. Against put is a verb that…
-
1
votes4
answers595
viewsA: How to create a variable where to access its properties via string?
To access the properties or methods of an object you need to use Reflection. You can even develop a hybrid class by encapsulating a key-value structure (Dictionary) to store values by name and…
-
5
votes6
answers16518
viewsA: What does NULL really mean?
NULL means null, worthless. Imagine, for example, an optional balance property accepting any real number. If optional, there is no number to be assigned that indicates that there is no assigned…
-
0
votes1
answer71
viewsA: Iterate Activex object collection with latebound Interop in c# (Command)
I got the answer in stackoverflow.com. The cat jump is to use the method _NewEnum(), Interop standard, to get a System.Collection.IEnumarator.…
-
0
votes1
answer71
viewsQ: Iterate Activex object collection with latebound Interop in c# (Command)
I need to iterate collections of COM+/Activex objects with latebound in C#. Right now my need is to iterate the collection of Activex objects COMAdmin.COMAdminCatalogCollection, return of the method…
-
6
votes4
answers2109
viewsA: "Filter" equal records into a list by adding their quantitative
Using LINQ you can group the items by code and add the amount in each group. However, LINQ is only available from version 3.5 and in some cases we need to work with previous versions, so I also made…
-
4
votes2
answers237
viewsA: Math account with exact precision returns different value in Javascript
Multiply its value by 100, making its decimals into integers. Round using the Math.round(), eliminating the decimals, and divide the result by 100, recovering the decimals.…
javascriptanswered MFedatto 579 -
1
votes4
answers4978
viewsA: Validating Date of birth
Create a date object with the user’s date of birth and another date with the current date less 15 years. If the user’s date of birth is less than the current date less than 15 years the user is less…
-
10
votes6
answers65532
viewsA: Sum in 2 inputs and appear in real time - Javascript
Just assign to the event onblur a function for calculating the values of the sources and assigning the result to the destination. The onblur is antagonistic to onfocus, then it will be triggered…
-
3
votes3
answers178
viewsA: Validate a Form
Validation of fields I suggest you create a function to validate the submission of the data to control the completion of the text field. validationPreenchimento(Event); In the onclick of your button…
javascriptanswered MFedatto 579 -
5
votes3
answers42573
viewsA: Calculate difference between two dates to validate date fields
In the JavaScript dates are valued according to the amount of milliseconds from 01/01/1970 00:00:00 GMT-0. By subtracting one date from another you will have the difference between dates in…