What do you want to save?
Add Code snippet
New code examples
-
VBA 2021-11-17 20:39:12
excel VBA return a result function
'In VBA, you assign the return value to the name of the function. 'This is different from many languages that use the 'return' keyword: Function Yesterday() As Date Yesterday = Date() - 1 End Function 'VBA functions can be called from other VBA code: ... Add solution -
Javascript 2021-11-17 03:46:14
js closure examples
A closure gives you access to an outer function’s scope from an inner function //example function init() { var name = 'Mozilla'; // name is a local variable created by init function displayName() { // displayName() is the inner function, a closu... Add solution -
SQL 2021-11-16 21:16:10
local vs global variables in sql
Local variables: These variables can be used or exist only inside the function. These variables are not used or referred by any other function. Global variables: These variables are the variables which can be accessed throughout the program. Global vari... Add solution -
Java 2021-11-16 15:34:25
calculate distance from source to destination in android
//import this import com.google.maps.android.SphericalUtil; public class Detailed extends AppCompatActivity { //define object for storing latitude and longitude coordinates LatLng YourLocationData; LatLng DestinationData; Double Distance; @Override ... Add solution -
Java 2021-11-16 10:04:39
how to call a void method with parameters in java
public class methods{ public static void main(String[] args){ printSum(5, 15); // Print 20 } public static void printSum(int a, int b){ System.out.println(a + b); } // Our method should be outside the main methods bounds // Call your f... Add solution -
VBA 2021-11-15 18:35:19
excel vba count instances of substring
'VBA functions to count the occurrnces of a substring in a string. 'Choose your function flavor: 'Small and Slow: Function InStrCount&(s1$, s2$, Optional Compare As VbCompareMethod = vbBinaryCompare) If Len(s1) Then If Len(s2) Then InStrCount = ... Add solution -
Other 2021-11-15 07:35:17
whar is namespace
We can think of namespace as you made a private space for your variables or functions so that ther cann't be any condition where you can find name collision of variable or function a program. I found out a great article on tutorialspoint and would defin... Add solution -
Javascript 2021-11-15 04:36:14
js this returns undefined
function foo() { console.log(this); } // normal function call foo(); // `this` will refer to `window` // as object method var obj = {bar: foo}; obj.bar(); // `this` will refer to `obj` // as constructor function new foo(); // `this` will refer to a... Add solution -
Other 2021-11-15 03:33:08
uat testing
What is UAT? User Acceptance Testing (UAT) is a type of testing performed by the end user or the client to verify/accept the software system before moving the software application to the production environment. UAT is done in the final phase of testi... Add solution