neoPhpExecSql and callback subroutine - Forum

Forum Navigation
You need to log in to create posts and topics.

neoPhpExecSql and callback subroutine

HI,

I have a subroutine called by serveral functions neoPhpExecSql.

In this subroutine I also call neoPhpExecSql with different select names stored in variable, and different callback name also stored in variable. I know there is no problem with [Select] because I already use this method with succes, but it seems that is not allowed for callback name because my app crash.

([nTour] is a value beteween 2 and 5)

Setvar [Select] "selectT[nTour]"
SetVar [Load] "LoadT[nTour]"
neoPhpExecSql "dbMT" "[Select]" "[nID]" "[Load]"

@phil78 as far as I know it's not possible to use a variable as a subroutine name.
Sorry!

OK thanks @luishp. Just another question in a subroutine you can add a parameter with a type = function, what is the use of this type. Anyway it will be useful to describe in the help documentation the use of all kind of parameters.

in a subroutine you can add a parameter with a type = function, what is the use of this type.

I have never used it within a subroutine but in plugins using JavaScript. In a plugin it allows to pass a subroutine as a parameter to be executed inside the function you are working on. It should work the same

Anyway it will be useful to describe in the help documentation the use of all kind of parameters.

I know. The documentation is improving slowly...

Regards.