[Gambas-user] [Gambas Bug Tracker] Bug #903: Bash-like "source" command for gbs3

bugtracker at ...3416... bugtracker at ...3416...
Sat Mar 19 23:27:21 CET 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.903&from=L21haW4-

Comment #2 by C THAL:

In Bash with the command "source" you can include other bash-files which contain functions (or variables) as libraries. So you can reuse code by including one piece of code in multiple Bash-files.

If there was am equivalent command in gbs3, which includes other gbs3-sourcefiles (like "USE", but for other gbs3-files) you could define for example a function which creates a database connection in one file "database.gbs3" and use that in multiple other gbs3-scripts. So you do not have to create the same function in multiple files.

Got it? :-)

C THAL changed the state of the bug to: Opened.






More information about the User mailing list