I am creating a module with NodeJS and in this module I created a function that returns a value, this value being updated within a callback function. The problem is that this variable / value is not being updated. I would like to know how to sol...
I'm not sure how to ask that. I do not have much knowledge of JS, but come on ...
The system here has an API that adds and manages elements on the screen. For example, just to illustrate: If I put API.adicionar(tipo.CampoTexto, "idNome", posi...
I see in many codes and even architectures the word callback, I see that it is in JavaScript functions.
But what is it?
How is it used?
Why?
I would like an example of actual usage.
I'm doing an application that needs to switch between screens and the following error appears:
inicio.java:
package com.example.deadsec.gerflores;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
i...
I want to create an unlimited number of instances of frmPai (MDI) that is dynamically created as follows:
class procedure TfrmPai.ShowForm;
var
frmPai: TfrmPai;
begin
frmPai := TfrmPai.Create(nil);
frmPai.Show;
end;
When I close I ru...
The keyword callable has been implemented since PHP 5.4.
It provides a way to type an argument of a function, forcing the argument type to be callback .
Example:
function minha_funcao($a, callable $func)
{
return $func($...
I would like to understand something about callbacks! I know there are other topics on the subject, but mine is a simple question that is not clear to me yet.
For example, let's say I have this array:
['Banana', 'Maçã', 'Melancia']
To go...
How do I get / answer the callback here?
const arr = ["Lucas"];
function minhaCall(sobrenome, indice) {
return indice + 1 + ") " + sobrenome + " de Carvalho";
}
arr.forEach(minhaCall)
For example, I can not give console.log(arr.for...
I'm having trouble handling the following json return from ERP Bling on Laravel:
array (
'data' => '{"retorno":{"pedidos":[{"pedido":{"desconto":"0","observacoes":"","observacaointerna":"","data":"2018-10-20","numero":"6462","vendedor":"M...