[solved]: Howto process a ABScript Function with Return Result?


Antonio Cambule

ABScript Function "MyFunction"

...do something

--------------------

How to process it lets say in an Click Event?
I tried:

thanks and regards
Antonio


DecSoft

Hello Antonio,

Certainly the "Return" action is intented to be used in functions that requires to provide a Javascript's way of return. Normally we deal with app's variables and they are global to the application, then, you can simply set a variable from the function's code and the look at that after the function has been called.



Antonio Cambule

Thanks David.

I'm used to work with functions and results and less with global variables. As coming from an Object oriented side of programming, i usually try to minimize the use of globals. but it's also ok


DecSoft

Hello Antonio,

Thanks David.

I'm used to work with functions and results and less with global variables. As coming from an Object oriented side of programming, i usually try to minimize the use of globals. but it's also ok

Certainly we can discuss about the conveniences and inconveniences of global variables. In fact AB doesn't use global variables in the "window" scope, but they are always in right the application's scope. On the other hand we can use objects variables to stack in their variable members instead of "simple" app's variables.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.