Source language: Translate to:

Call vs. GoSub

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Call vs. GoSub

Postby fkapnist » Thu Oct 08, 2015 5:06 am

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:

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

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest

cron