incorporating_20bookmarks_20in_20a_20program
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| incorporating_20bookmarks_20in_20a_20program [2018/03/31 13:19] – external edit 127.0.0.1 | incorporating_20bookmarks_20in_20a_20program [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ==== Bookmarks using DEF ==== | ==== Bookmarks using DEF ==== | ||
| \\ Normally you use **DEF** with the keywords **PROC** (to define a procedure) or **FN** (to define a function). However, if you include a line in your program which begins with **DEF** but is //not// followed by **PROC** or **FN** that line will act as a bookmark. For example:\\ \\ | \\ Normally you use **DEF** with the keywords **PROC** (to define a procedure) or **FN** (to define a function). However, if you include a line in your program which begins with **DEF** but is //not// followed by **PROC** or **FN** that line will act as a bookmark. For example:\\ \\ | ||
| + | <code bb4w> | ||
| DEF _this_is_important_ | DEF _this_is_important_ | ||
| REM important code starts here... | REM important code starts here... | ||
| + | </ | ||
| The name of the bookmark must follow normal procedure and function naming conventions, | The name of the bookmark must follow normal procedure and function naming conventions, | ||
| + | <code bb4w> | ||
| DEF take me here | DEF take me here | ||
| + | </ | ||
| will result in **take** appearing in the menu.\\ \\ | will result in **take** appearing in the menu.\\ \\ | ||
| ==== Bookmarks using labels ==== | ==== Bookmarks using labels ==== | ||
| \\ You can incorporate [[http:// | \\ You can incorporate [[http:// | ||
| + | <code bb4w> | ||
| (_this_is_important_) | (_this_is_important_) | ||
| REM important code starts here... | REM important code starts here... | ||
| + | </ | ||
| The same naming restrictions apply as with the previous method, and again if you incorporate a space character the context menu will show only what precedes it (in this case **take**): | The same naming restrictions apply as with the previous method, and again if you incorporate a space character the context menu will show only what precedes it (in this case **take**): | ||
| + | <code bb4w> | ||
| (take me here) | (take me here) | ||
| + | </ | ||
| Using labels as bookmarks does have one minor disadvantage in that if you also use ' | Using labels as bookmarks does have one minor disadvantage in that if you also use ' | ||
incorporating_20bookmarks_20in_20a_20program.1522502365.txt.gz · Last modified: 2024/01/05 00:17 (external edit)