Date: 07-23-2010
Return to Index
'Note that gbSnippets can insert a snippet into the PowerBASIC IDE.
'Use Ctrl-E to insert the snippet and Ctrl-E again to run the IDE.
'Additional details are provided below.
'Most of the snippets in this library consist of the following:
'1. Discussion/background
'2. Syntax of central statements/functions/API
'3. Primary Code (just a few key lines)
'4. Compilable Example
'Automatic Transfer of Code to the PowerBASIC IDE
'To open a snippet in the PowerBASIC IDE, simply press Ctrl-E
'or the "IDE" button in the gbSnippets toolbar. The entire snippet
'will appear in the PowerBASIC IDE, with these additional features:
'1. If "Limited IDE Transfer" is checked, only code starting
' from the line beginning "'Compilable Code" will be placed
' in the IDE.
'2. If a selection is made within the source code listing, only
' the selected text will be transferred to the IDE.
'3. If "Exclude Title Line" is checked, the 1st line of the
' snippet will be transferred, but commented out. This
' applies only if options #1 and #2 above are not used.
'Finally, the "IDE+" toolbar button transfers all of the code,
'or just the selection if there is one, to the IDE - except
'that the transferred code will be wrapped in a template.
'A copy of the template, which can be modified by gbSnippets users,
'is found in this library under ".Reference\.Template for IDE+ Option".
'The actual template file is in the subfolder "support_files" where
'gbSnippets was installed.
'The transferred source code is first written to a file in the subfolder
'"temp_projects", under the filename "gbsnippets_temp.bas". Each successive
'use of the IDE options uses the exact same filename! All read/write
'statements in the snippets are written to work in the same folder.
'WARNING: Do not put the 6 char string "++" + "--" + ";;" anywhere
'in your code. gbSnippets uses it as a delimiter between snippets. If you
'use it, you won't be able to read your snippet files! DON'T USE IT!
'See gbSnippets help http://www.garybeene.com/sw/gbsnippetshelp.htm
'for more information.
'gbs_00002
created by gbSnippets: http://www.garybeene.com