[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.


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.