Call vs. GoSub

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Locked
User avatar
fkapnist
Posts: 348
Joined: Mon Nov 17, 2014 4:24 pm
Location: Greece
Contact:

Call vs. GoSub

Post by fkapnist »

I just noticed that all actions included in the (GoSub) subroutines will automatically be compiled into the final program. But external (Call) functions, from a webpage for example, will not be compiled unless that function is also called from within NB. That explains why some finished .exe output won't work. I would use the Call function only if it includes JS, VB or something other external to native NB script, and make sure it is also called from NB, not just an external webpage. GoSub subroutines on the other hand will always get embedded into the final .exe.


Also Note: If you have several versions of a PUB, changes in the subroutines will affect only the version you are editing. But changes in the function library will affect ALL versions of a PUB which may cause some problems...

:shock:

.
Locked