FutureBasic Logo

<<    Index    >> FutureBasic

Appendix O - User Libraries & Help Menu Additions   appendix



Why User Libraries?
User libraries provide a way to share source across several FB projects or single source file without having to duplicate the source within each project.

For example, say you have an include file with these great date manipulation functions and you want to use those date functions in Project A and Project B, possibly Project C at a future date. So you copy the include into Project A and Project B. But a bug is found in one of the date functions and the fixed date function include file needs to be copied into BOTH Project A and Project B. Copying the updated include to several projects is a little time-consuming and not risk-free.

Putting the include file in User Libraries allows a project to reference the original include ( and not a copy within the project ) and the programmer doesn't have to update project copies of the include. In fact, the project doesn't have a copy because it refers to the original include in User Libraries.

Implementing User Libraries
  1. Choose Show User Libraries in the View menu.
  2. Add your files (or their aliases) to the User Libraries folder
  3. Include the files in your app using the include statement, or by dragging them, from the User Libraries folder, to your project window

Help Menu Additions
In addition to FB's static help menu items (such as the FutureBasic Reference), users are able to append their own items to the bottom of the help menu. Possible examples are: an alias of a document explaining sandboxing, another app that you might want to launch (like an error codes app). Virtually anything is possible.

Implementing Help Menu Additions
  1. Choose Show Help Menu Items Folder in the View menu.
  2. Add your documents (aliased or not) and apps.