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
0 answers

Placing custom views in Layout in Android

I'm developing different classes and defining objects from these classes and for each object there are some functions that I'm calling when a button is pressed or the screen is touched I want to place my objects as in the picture in this link When…
Lily
  • 816
  • 7
  • 18
  • 38
0
votes
1 answer

Autohotkey call methods of a control

I have a simple windows form that has a COM user control. This COM user control has method "GetNode" COM methods. I want to test this function call using autohotkey. Run "C:\AHC_Exploring\Project1.exe" WinWaitActive, Form1, , 2 if ErrorLevel {…
Naresh
  • 658
  • 1
  • 7
  • 22
0
votes
1 answer

Calling a pl/sql function from apex page process

From a page process in Apex, I'm trying to call a function which resides in a package in my oracle database. I am able to call a procedure with the following call: #OWNER#.package_name.procedure_name( p1 => p2); According to one of the…
user1481789
  • 49
  • 3
  • 11
0
votes
2 answers

Getting an error on member function call

So I'm currently using the following code in the constructor of my class which has QMainWindow as a base: char *name = this->windowTitle().toWCharArray; The codes yields the following error: error C3867: 'QString::toWCharArray': function call…
Elegant
  • 143
  • 2
  • 15
0
votes
1 answer

How to record the running information of functions in your program?

I recently attended a coding interview and I was asked a question which I didn't know the answer to. After searching the answer on the internet for a few day, I come here call for help. The question is described as followed: You should propose a…
L_Yang
  • 39
  • 3
0
votes
4 answers

Android calling class functions from second class

How can I call a function defined in class#A from class#B? Class#B extends AsynchTask and fetches remote data from a web service. The class#A function I am attempting to call from class#B is used to send the retrieved remote data for Class#A to…
sisko
  • 9,604
  • 20
  • 67
  • 139
0
votes
1 answer

Python calling class methods from external module

I need help please, I have searching but none of the answers I found is working for my problem I need to set a variable in a class method in another module (frist.py) class car(object) @staticmethod def reg_number(self, regno): …
pietvr
  • 1
  • 1
0
votes
2 answers

Javascript calling a function that returns two values but I want only the first (or the second)

I have a function in javascript that returns two values: function today_date() { var t = new Date(); var day = t.getUTCDay(); var dayW = t.getDay(); // Day of de week (0-6). return [day, dayW]; } When I call this function (within…
craftApprentice
  • 2,697
  • 17
  • 58
  • 86
0
votes
2 answers

Get the column of function call in php

I want to be able to get the column of a function call in PHP. With debug_backtrace(), I can get the line of the function call, but I cannot get the column. What I want to do is to be able to distinguish two function calls on the same line. For…
antoyo
  • 11,097
  • 7
  • 51
  • 82
0
votes
3 answers

How can I access obect instances created from file output?

I am having trouble using file I/O to create instances of my classes for a game I am working on. It might well be a dumb question, but I cannot fathom out why the compiler seems to successfully creates the objects from the data stored in the text…
0
votes
1 answer

App crashes while calling a function

How do i call the function from inside onCreate()...I want to call CreateSharedactionprovider() from oncreate() but the app crashes...Am i not calling the function correctly or missing some arguements @Override protected void onCreate(Bundle…
user2429689
  • 149
  • 1
  • 3
  • 8
0
votes
1 answer

python passing positional arguments to another function call

Can someone please explain to me how the below works: class Memoize: def __init__(self, f): self.f = f self.memo = {} def __call__(self, *args): if not args in self.memo: self.memo[args] = self.f(*args) …
ducin
  • 25,621
  • 41
  • 157
  • 256
0
votes
0 answers

How variable are assigned in a function call?

void fun(int b1[]){} int main() { int a1[4]={1,2,3,4}; int b[]=a1; //error fun(a1);// works fine } how is b1 assigned to a1?. Why is it not same as int b[]=a1;?
Alex
  • 1,178
  • 3
  • 9
  • 24
0
votes
1 answer

How to call method having parameters (object sender, EventArgs e )

In my wpf application, I've MonthView class where this method is defined, which takes selected date from the calendar and shows respective dayView window for that date. public void calItemSelectedDate(object sender, SelectionChangedEventArgs e) …
Dinesh
  • 507
  • 4
  • 14
  • 23
0
votes
1 answer

Detect call's offset with ptrace

I'm trying to do a program that can detect calls with the function ptrace. Using PTRACE_SINGLESTEP I can run a program instructions by instructions, then, when I get the OP_CODE 0xe8 pointed by the register RIP, I use PTRACE_PEEKTEXT to get the 4…