A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task.

learn more… | top users | synonyms (1)

3
votes
1answer
86 views

How To Pass Different Objects to same Function in C#

I have 10 different classes, but below are two for the purpose of this question : public class Car { public int CarId {get;set;} public string Name {get;set;} } public class Lorry { ...
1
vote
0answers
19 views

Can I use a variable for a function name?

I'm trying to loop through a list which automates several functions. Unfortunately the function is not evaluated. For example: $colors: red, blue, green; @each $color in $colors{ ...
0
votes
0answers
12 views

Suppress admin_notices of activated plugins (multisite)

I have a multisite project and I need to suppress the admin_notices of plugins for each site. I have searched for hours to find a way to suppress admin_notices with no luck. Any thoughts are ...
0
votes
0answers
5 views

Parameter in Nunit test runner for Output

please help me to resolve the problem i need to run Nunit test with including groups from file and i need to write in xml output the name of the group i made it by param($gr) but it doesn't work, ...
2
votes
3answers
66 views

Python Function Return

If I want to return more that one variable from a function in Python I have been doing the following: def foo(): firstName = 'Bob' lastName = 'Jones' return [firstName, lastName] Then ...
0
votes
3answers
35 views

call one function within another function in VB.Net

is there a way to call function within another function eg: call functionname() but this can be called only within the sub, is there a round about?, I have tried using GOTO but even that should be ...
2
votes
5answers
110 views

What is the use of “const” functions? [duplicate]

This code looks weird: const double square(double x) { return x*x; } Common sense tells me that const in this context means either the function returns a const double OR it promises ...
0
votes
2answers
21 views

How to extend an object inside an anonymous function

I want to add another function called myFunction() into the CoreTeamObject, which is declared as local inside the anonymous function. Is this possible? !function ($) { var CoreTeamObject = ...
1
vote
1answer
20 views

Easy level, selecting elements in DOM, optimization, creating method function

Please, do not laugh, too much. I know jQuery ans JS for a short a while. 1) How can I make this code more efficient? First line is how do I "select" elements, the second, line is how do I prep to ...
0
votes
0answers
23 views

How Insert datetime from datagridview to database? VB.NET

i want Insert datetime from datagridview to database.But i'm don't save required. Ex. Datagridview DAte 2012-11-20 16:36:39 when i'm save to datagridview to datebase DAte 1900-01-01 00:00:00.000 ...
2
votes
2answers
48 views

Python For Looping, Function Problems

I'm trying to create a little Guess The Flag game using Pygame and Python, but there's a problem with some for looping and and functions I've created. I'm relatively new to Python, and sometimes, I ...
3
votes
6answers
39 views

Debugging loop and function - javascript

My browser is crashing from this loop that doesn't appear to be unterminated. function checkLetters(word){ for(i=0;i<5;i++){ for(j=i+1;j<5;j++){ if(word.charAt(i) == ...
-1
votes
3answers
38 views

Python function that is supposed to take a certain file and print out the occurrences of a certain part of the file

For example, if I take this file: http://vlm1.uta.edu/~athitsos/courses/cse1310_summer2013/assignments/assignment7/albums.txt I need the function to count each band and the number of times they are ...
2
votes
2answers
55 views

Python dict call function as value

I'm creating a dict in python using returned json. one of the values I want to be a shortuuid, so I put a function as the value. I want that function called and the value replaced with what that ...
0
votes
2answers
24 views

Call function based on dropdown selection [duplicate]

I have the following dropdown <select onchange="myFunc(argument here)" id="propertydropdown"> <option value="tags">blah</option> <option value="tags2">blahblah</option> ...

1 2 3 4 5 1373
15 30 50 per page