Questions tagged [function-calls]

Function (or method) calling is the act of using a function or a method.

Functions (or methods) are blocks of code.
They are there, ready to perform some action (a sequence of instructions, including the possibility of calling other functions - even themselves, which is called recursion).
If nobody calls them, the are useless (dead code).

351 questions
0
votes
1 answer

Call a function wihich is represented as string?

can I call a method that is represented as string? Example: $function = '$this->myfunction($myparam)'; How could I call myfunction with myparam? Possible? Thanks :)
EOB
  • 2,975
  • 17
  • 43
  • 70
0
votes
0 answers

sequentially call a function and reload the page

I want to call a function and then reload the current page(sequentially) in webkit safari with javascript how can i do this: I tried : (function(){ functionCall();window.location.href = window.location.href})(); but didn't work it only reloads the…
user1319236
0
votes
1 answer

Template function gives "no matching function for call" error

First question on stackoverflow :) I'm relatively new to C++, and have never used templates, so forgive me if I'm doing something silly. I have a template function that combs through a list and checks for a specified element of a general type. That…
-1
votes
2 answers

Running a set function name in multiple Powershell scripts

I am building a testing framework for my current development team. One thing that I'd like to let them do is create a Powershell script to run their tests. The system is a database deploy system, so to test it they will need to potentially run some…
Tom H
  • 46,766
  • 14
  • 87
  • 128
-1
votes
2 answers

I'm trying to understand how to call a function from another function in the same class

I'm attempting to login to an Ubuntu server and search logs at several different paths with a function that already works locally (Python 2.7 - win7 machine). Below is the function of how I login and select the logs (also, the basis of my program is…
suffa
  • 3,606
  • 8
  • 46
  • 66
-1
votes
1 answer

how to call a function from another script inside an imported class

I am building my first larger Python application using tkinter, python 3.6.3 and window OS. The GUI for the application consists of a Notebook with several tabs. Each of the tabs in turn contains a Labelframe which in turn contains a number of…
-1
votes
1 answer

Binary to Decimal Converter with C

I am new at writing in C, and I am not quite understanding why this programme is resulting in a failure. I feel like it is a result of the method isTrue. The purpose of the method was to ensure that the string entered was an actual integer, but it…
-1
votes
1 answer

How to fix an operator to a void call in a button?

I'm a beginner C# dev and I am forgetting something. The (!ValidateCleared(actionsChecked))code is throwing and error the Operator ! cannot be applied to a void. Not sure how to fix this in this example. I tried keeping it a bool and using a…
-1
votes
1 answer

Function call changing its argument python

I am trying to reduce a matrix to its echlon form using a function but upon the calling the function, it is also changing its arguments. Here is the code def GaussE(E,r): N = np.size(r) for i in range(0,N-1): for j in range(i+1,N): …
-1
votes
2 answers

Can not Print string via function return value?

#include #include char *in() { char a[10]; scanf("%s",a); return (a); } int main () { char *a; a=in(); printf("\n%s",a); return (0); }
-1
votes
2 answers

How to corrupt the stack in a C program

I have to change the designated section of function_b so that it changes the stack in such a way that the program prints: Executing function_a Executing function_b Finished! At this point it also prints Executed function_b in between Executing…
-1
votes
1 answer

How to call a function that is inside another function javascript

I have two files as below: trycapture.js (which has) trycapture() (which has) drawaggregate() definition main.js from which I want to call drawaggregate(); trycapture.js trycapture(){ ... some code function drawaggregate(){ ... definition …
Arihant
  • 3,847
  • 16
  • 55
  • 86
-1
votes
2 answers

C Struct Declaration

I have a little problem with C Syntax. I want to build a struct array. But it returns expected declaration specifiers or ‘...’ before ‘cities’ Here is my code #include #include #include #include…
Berkin
  • 1,565
  • 5
  • 22
  • 48
-1
votes
1 answer

Confusion about variables equaling functions JavaScript

I have these functions: function change(num1, num2){ //return number } function getFunction(funct){ //return function } this declaration: var funct = getFunction(change); and this call funct(array); I am confused about what the call…
-1
votes
1 answer

return IEnumerable and pass as agument

I read a lot about why it is better to return an IEnumerable instead of an IList (or something like this). But now I stuck at some point. Consider something like this: I have some functions that do multiple enumerations and therefore take an…
user1660514
  • 267
  • 3
  • 7