I would like to know if it’s possible to implement something like this:
procedure waitandcall(time,@MyProcedureOrFunction)
which execute the function or procedure I’ve created ?
I’m not sure if they are called callbacks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s absolutely possible, and you don’t even need @ before your function.
In fact, all the events are based on this.
Start by defining a type for your function/procedure
Then you can use your procedure type anywhere, as long as your procedure’s signature matches your type.
If you’re using an object method instead of a plain procedure/function, you need to use
of objectTo call your callback from within, you can use something like this: