OpenLLM-France/wikimedia huggingface dataset:
# Futurebasic/Language/Reference/line
## LINE
### Syntax

lineAddress& = LINE "label"

### Description

This function looks for the indicated label in your program, and returns the memory address of the first program instruction that follows the label. The returned address can be used with the CALL <address> statement (in cpu68K compiles). If you want to use LINE in this way, the label should indicate the beginning of an ENTERPROC procedure.
Note: To get an entry point address for an ENTERPROC procedure which is to be used as a "callback procedure" for a MacOS Toolbox routine, use the PROC function instead.

### See Also

CALL; ENTERPROC; @FN; PROC
# Futurebasic/Language/Reference/line input
## LINE INPUT
### Syntax

LINE INPUT [@(col,row)|%(h,v)] ["prompt";]stringVar$

### Description

This statement behaves similarly to the INPUT statement, except that the entire line of text entered by the user (including any commas, quotes and leading spaces) is stored into the single variable stringVar$. See the INPUT statement for a description of the parameters that precede stringVar$.
Note: INPUT and LINE INPUT are considered rather "old-fashioned" ways to interact with the user. Programs with good user-interface design usually utilize Edit Fields instead.

### See Also

INPUT; LINE INPUT#; EDIT FIELD
# Futurebasic/Language/Reference/library
## LIBRARY
### Syntax

LIBRARY "LibraryName"LIBRARY

### Description

Libraries are routines that are stored either in the Extensions folder of the System Folder or in the folder with the compiled application. Libraries are accessed through FB's standard toolbox assignment mechanism. Libraries may be dragged into the project window and included in the compiled application.
The first syntax: LIBRARY "LibraryName" tells FB to begin using toolbox calls from Library Name. Only one library at a time is ever accessible. When the toolbox statements have been set up using TOOLBOX and TOOLBOX FN, the second syntax is used to return to the default library.
The LIBRARY command is a mechanism that establishes links to a precompiled library. It doesn't matter who created the library (Apple's libraries are most common) or what language it was written in. It's just a file full of subroutines. The creator of the library will usually provide a set of function calls that may be used after the library is opened. Each of these is made available to your FB application with a TOOLBOX or TOOLBOX FN command.
Example: CD Example: PPC SharedLib Example
The following example is already part of the FB headers and does not need to be entered. It is offered here as an example only.
LIBRARY "QuickTimeLib"
TOOLBOX FN EnterMovies = OSErr `0x7001,0xAAAA TOOLBOX ExitMovies `0x7002,0xAAAA TOOLBOX FN GetMoviesError = OSErr `0x7003,0xAAAA
LIBRARY
Checking For Available Library Commands After executing a LIBRARY statement, you may wish to determine if a particular routine is available. The following example shows how that can be accomplished. A source code example for a library written in C is included on your CD. Our simple shared library creates a toolbox call named SharedBeepNTimes.
LIBRARY "Shared Library" ToolBox SharedBeepNTimes(WORD) `0xA9FF LIBRARY
DIM result,err,connID&,MainAddr&, symAddr& DIM symClass`,symClassFill`,symCount&,msg$,i
PRINT "*** Getting connection to shared library ***"
err = FN GetSharedLibrary("Shared Library",¬  _"pwpc",0x0005,connID&, MainAddr&, msg$)
LONG IF err  PRINT "*** No Library entry by that name... ***" XELSE  err = FN CountSymbols(connID&, symCount&)  PRINT "*** Checking for Entry. ***"  PRINT "found";symCount&;" total."  FOR i=0 TO symCount&-1  symClass` = 0  err = FN GetIndSymbol(connID&,i,msg$,¬  symAddr&,symClass`)  PRINT i,"Name:'";msg$;"'",  PRINT "Addr:";HEX$(symAddr&),"class:";symClass`  NEXT  err = FN FindSymbol(connID&, "SharedBeepNTimes",¬  symAddr&, symClass`)  LONG IF err  PRINT "*** No code entry by that name... ***"  XELSE  PRINT "*** Entry found, trying it... ***"  SharedBeepNTimes(1)// CALL sharedLibrary  PRINT "Done..."  END IF END IF

### See Also

FBTestForLibrary; "Insure Validity of PPC Toolboxes" in Editor Manual; TOOLBOX functions; TBALIAS
# Futurebasic/Language/Reference/line input pound
## LINE INPUT#
### Syntax

LINE INPUT# deviceID, stringVar$

### Description

This statement reads a line of text data from the open file or open serial port specified by deviceID, and stores the data into the string variable stringVar$.
If deviceID equals zero, then LINE INPUT# reads data from the keyboard. LINE INPUT#0,stringVar$ is identical to LINE INPUT stringVar$.
If deviceID specifies a file, then LINE INPUT# reads a line of text from the file, beginning at the current "file mark" position (which is usually at the beginning of the line), and ending when a carriage-return character is encountered, or the end of the file is encountered, or 255 characters have been read, whichever occurs first. LINE INPUT# then assigns the entire string of characters to stringVar$. the file mark is then advanced to a position just past the last character read.
If deviceID specifies a serial port (i.e., if its value is _modemPort or _printerPort), then LINE INPUT# behaves in a similar way, except that the concepts of "file mark" and "end of file" generally don't apply.
Note that LINE INPUT# is similar to INPUT#, except that special characters such as commas, quotes and leading spaces are not interpreted as data item delimiters, but instead are copied directly into stringVar$.
Note: If the file mark is already at the end of the file when you execute LINE INPUT#, FB generates an "Input past end of file" error. To prevent this situation, check the value of EOF(deviceID) before executing LINE INPUT#.

### See Also

INPUT#; LINE INPUT; EOF; OPEN
# Futurebasic/Language/Reference/loc
## LOC
### Syntax

result = LOC(deviceID)

### Description

This function returns one of two things, depending on the value of deviceID.
* If deviceID is the file ID number of an open file, the function returns the current location of the file mark as an offset from the beginning of the current record. For example, if LOC(fileID) returns zero, the file mark is located at the beginning of the record. The file mark indicates where in the file the next input or output operation will occur.
* if deviceID specifies an open serial port (i.e., if its value is _modemPort or _printerPort), then the function indicates the status of the carrier signal. If returns _zTrue if the carrier is detected, or _false if the carrier is not detected.
Note: You can use LOC along with REC to determine the exact location of the file mark within the file.

### See Also

REC; RECORD; OPEN; LOF; HANDSHAKE; OPEN "C"
# Greek Mythology/Gods/Artemis

Artemis (identified as Diana in Roman mythology) was the 'Lady of the Wild Things' and 'Huntsman-in-chief to the gods'. She was the daughter of Zeus and Leto. She is the sister of Apollo, and they were both born on the island Delos. They both are associated with the bow. Although Artemis is associated with the Silver Bow, and Apollo, the Curved Bow. Artemis is one of three people immune to Aphrodite's enchantments. She has a special friendly mutual relationship with all the mortals. She walks around all the time in her silver sandals giving special divine protection to the animals, especially the very young. She also loves to ride in the sky on her silver chariot shooting her silver moonlight arrows upon the world.
# Greek Mythology/Chthonian Gods/Persephone

Persephone was the daughter of Zeus and the harvest goddess, Demeter. According to legend, she was abducted by Hades, see Demeter
# Greek Mythology/Gods/Dionysus

Dionysus, in contrast to Apollo, was the god of wine, theatre and revelry. A son of Zeus. The Romans called him Bacchus. Dionysus was a happy god, often associated with feasts and merriment, and his worship became very popular.
# Greek Mythology/Contributors

Please add your name here if you wish to become a main contributor in the following template. Also please try and link to your contributions.
--Kyriakos 21:10, 15 February 2006 (UTC) + Started the book, contents, Gorgons, Cyclops.
Sign below:
* Lnhammer 20:55, 23 February 2006 (UTC) + Muses
* Trooper209 22:08, 23 February 2006 (PST) + Zeus, Artemis, Athena
* Hedwig0407 03 August 2003 + None at the moment but I will starting make contributions.
* Webjunkie 13:53, 6 August 2006 (UTC) Odysseus - didn't add it, but, started it.
* MKnock 10:34, 8 April 2007 (EST) + Aphrodite, Prometheus, Atlas, Graeae, Scylla, Charybdis, Pegasus, Medusa
* Nymah 15:37, 7 December 2007 Minotaur
* Vampirism44 (talk) 00:16, 26 March 2009 (UTC) + Phorcys, Ceto, Improved The Creation Story, created the pages The Sphinx, Giants
# Greek Mythology/Gods/Aphrodite

    "No, my child, not for you are the works of warfare. Rather concern yourself only with the lovely concerns of marriage..." - Iliad, book 5, line 428.
Aphrodite (known in Roman mythology as Venus), is the Greek goddess of romantic love, sexual passion and beauty. She is often accompanied by her son Eros (Cupid), who shoots arrows into mortal and god alike to inflame their passions.
There are several varying accounts to her birth. Some writers asserted that she is the daughter of Zeus and Dione. The majority of writers, including Ovid, state that she was born out of the ocean when Cronus castrated Uranus and the genitals fell into the sea. Other versions of the story claim that she was born out of the foam of the sea at the site of Petra tou Romiou in Paphos, of the island of Cyprus.
Aphrodite was forced into marriage to Hephaestus, although she disliked her unsightly husband, after refusing to submit to Zeus' carnal passions. She had a long running affair with Ares. She also has had children with Hermes (Hermaphroditus) and Anchises (Aeneas - the hero of the Aeneid, the mythological founder of the Roman bloodline). The former child's name gave rise to the naming of a unique medical condition when people having both male and female sexual organs, referred to as hermaphrodites, are born.
Consorts and children
1. Hephaestus 2. Ares
3. Poseidon
4. Hermes
5. Dionysus
6. Adonis
7. Phaethon (son of Eos)
8. Anchises
9. Butes
10.unknown father
Aphrodite was part of the trio of goddesses at the trial of Paris, where Paris, a Trojan prince, was to choose which of the three goddesses was the most beautiful. Aphrodite bribed Paris successfully by promising him the most beautiful woman in the world if he chose her. This resulted in Paris taking/stealing Helen (reputed to be the most beautiful) away to Troy. This, according to the Iliad, began the ten-year Trojan War.
# Greek Mythology/Gods/Apollo

Apollo, (Also Known As Apollo in Roman Mythology)is the son of Leto and Zeus and twin to Artemis, Apollo is most often accredited as being the Sun God. Some say he carried the sun across the sky in his chariot each day, although Helios was generally credited for that. Other aspects of this god include his association with Helios and Chronos.
He was the favorite god for the Kingdom of Troy. The Trojans, as the people of Troy were called, believed in him and his sponsorship and worshipped him with due respect. The walls of Troy were almost never breached before the infamous war between Agamemnon (Heracles and Telamon sacked Troy), the Greek emperor and Hector, the prince of Troy and the Trojans give Apollo the credit for their remarkable survival through the ages.
Apollo had several love interests, both male and female. He accidently killed his lover Hyacinthus with a discus, then turned him into the flower that bears his name. Another lover of his died at his own hand. Coronis, whose child was saved from death, mothered Asclepius the famous healer. Zeus killed Asclepius because he could raise people from the dead. In return, Apollo killed the Cyclops. For this Zeus ordered him to work for a mortal for one year.
Apollo is credited as the slayer of Python and the founder of the Pythian games. After slaying the Python, he took over the oracle at Delphi from Themis. The oracle at Delphi is the most important of the oracles. Among other prophesies, the oracle delivered the famous prophesy to Oedipus that he would murder his father and marry his mother. Heracles once threatened to set up his own oracle at Delphi because he couldn't get an answer from Apollo.
Apollo was known for his love for music and poetry. Being the son of Zeus made him love women also. He had many relationships with different women.
# Greek Mythology/Gods/Demeter

Demeter is the goddess of harvest cereal and corn. She was the daughter of Titans Cronus and Rhea. She used to have annual festivals in her name. Her daughter, Persephone (per-sě-funny), was kidnapped by the god of the Underworld, Hades. When this occurred, Demeter had to agree to allow her daughter to stay half a year with her and half with Hades. They say that during spring and summer, Demeter gets to see Persephone and during fall and winter she doesn't and is so depressed that the plants of the Earth go dormant.
# Greek Mythology/Gods/Ares

Ares was the Greek god of war, conflict and masculine courage. He is distinguished from Athena, also a war deity, as being associated with the individual warrior and the personal fight.
His origins consistently claim Hera as his mother and attribute his paternity to Zeus or that Hera conceived him alone to spite Zeus conceiving Athena by himself. His name may mean destroyer or avenger.
He is associated with the Roman god Mars, although Mars had an agrarian side and enjoyed wider worship.
Homer's Ares was bloody and merciless and while god of war, was a coward who cried in pain and when wounded, runs away. Homer's interpretation of Ares is likely more for entertainment value than religious accuracy.
In the mythos there are no mentions of Ares attacking unprovoked. Each of Ares' duels are the result of attacks on his family, or in the heat of a declared battle. The rape of his daughter, the revenge killing of her rapist and his acquittal at the Areopagus is one example.
On the battlefield, he was accompanied by Phobos ("fear") and Deimos ("terror") and his daughters Eris ("strife") and Enyo ("horror") all his children with Aphrodite. They also were parents to Harmonia ("harmony").
Although Mars is attributed with the rape of Rhea Silvia, Ares is not associated with non consensual sex.
Ares' symbols were a spear and armor. The woodpecker, vulture and wolf were also associated with him.

## External links

* Theoi.com's Ares pages
# Greek Mythology/Gods/Athena

Athena was the goddess of battle strategy, and wisdom. Identified in the Roman mythology as the goddess Minerva. She was always accompanied by her owl and the goddess of victory, Nike. Also known as Pallas Athena, she wore a breastplate made out of goatskin called the Aegis, which was given to her by her father, Zeus. She had many names that explain her. Some of her names are helmet head, Athena the wise, and others.
Athena was an armed warrior goddess. The Parthenon at Athens was her most famous shrine. She never had a true lover. For some strange reason it was hopeless that she would fall in love; Hephaestus tried once, yet failed. Athena was well known for giving advice/mentoring heroes. One example of that is in The Odyssey, where Athena assists Odysseus' son Telemachus in finding his father; another is where she gives Perseus the shield he will need to fight Medusa.
Athena's mother was Metis. Metis warned Zeus that if she bore him a boy child, the child would be greater than him. Zeus swallowed her and started having a terrible headache. Then his head split open by an axe from help from Hephaestus. Suddenly, Athena came out of his head. Athena came out fully grown, with her symbols the aegis and the famous helmet of Athena. Athena is much like her brother Ares: They are both rulers of war, but she is more of the strategy and quick thinking. Her brother Ares is the power, strength, and villain of mythology. Athena is also known of being and having Wisdom, Wealth and Crafts.
Athens is named after Athena for memory of her. She has proved her skills for craft for making cloth. Once a young maiden named Arachne, who was a very talented weaver, claimed that she was a better weaver then Athena herself. So Athena came down to Earth to test Arachne. Athena and Arachne competed in weaving a tapestry. At the end of the competition Arachne made a tapestry mocking the gods, which sent Athena into such an uncontrollable rage that she turned Arachne into a spider, thus creating the name Arachne.
# Futurebasic/Language/Reference/prhandle
## PRHANDLE
### Syntax

pRecH& = PRHANDLE

### Revised

FEBRUARY, 2002 (Release 6)

### Description

This function returns a handle to the print record. The print record (also called a "TPrint record") contains useful information about the printer and about the current print job (if any). For a complete description of the contents of the print record, see the "Printing Manager" chapter of Inside Macintosh: Imaging with QuickDraw. A few of the more useful fields from this record are listed here:
¥ pRecH&..prInfo.rPage This gives the print page rectangle. You can get the width and height of the page as follows:
pageWidth = pRecH&..prInfo.rPage.right% - ¬ <spacer type="horizontal" size="198">pRecH&..prInfo.rPage.left% pageHeight = pRecH&..prInfo.rPage.bottom% - ¬ <spacer type="horizontal" size="198">pRecH&..prInfo.rPage.top%
Use these numbers to determine how much room is available for text and graphics. The page rectangle is affected by the user's selections in the "Page Setup" dialog: for example, if the user selects "landscape" mode, the page width will be greater than the page height.
¥ pRecH&..prJob.iFstPage%; pRecH&..prJob.iLstPage% These numbers indicate the first and last pages which the user wants to print. Your program should not print any pages outside of this range.
¥ pRecH&..prJob.iCopies% The number of copies to print. This is the number of times your program should send the selected pages to the printer. Note that many newer printer drivers will always set this number to 1; such printer drivers will handle multiple copies internally.
Note:> PRHANDLE is partially emulated for Carbon. FB creates a 120 byte handle and fills in a few standard rectangles and other values so that programs won't be so likely to break during the transition period to OS X. But these emulations are not something that you should depend on in all future versions of the IDE.

### See Also

DEF PAGE; DEF LPRINT; Inside Macintosh; Imaging with QuickDraw
# Futurebasic/Language/Reference/pstr statement

Which of the following did you need help with? Please click a link to go to the desired page.
PSTR$ Function: string$ = <a href="pstr$%20function.html">PSTR$</a>(address&)
PSTR$ Statement: PSTR$string$
# Futurebasic/Language/Reference/put preferences
## Syntax

PUT PREFERENCES prefFilePath$, prefRecord

## Description

This statement locates the named preferences file and writes the contents of the file from the indicated preferences record. If the file does not exist, it is created. This routine places the file in the preferences folder and works regardless of what system software is in use. The file may contain a folder in the form foldername:fileanme where a colon separates the folder name(s) from the file name.
In order to use any of the PREFERENCE commands you must include the proper header file using the following statement:
INCLUDE "Subs PrefsFile.Incl"
The following example shows how to manage a set of preferences using the new PREFERENCE commands. A Boolean value and a text string are saved in the preference file when the "Save Prefs" button is clicked. If you run the program a second time, you will see that modified prefs were properly stored and retrieved.
"Image Was Here"

## See Also

GET PREFERENCES; KILL PREFERENCES; MENU PREFERENCES
# Futurebasic/Language/Reference/prcancel
## PRCANCEL
### Syntax

userCancelled = PRCANCEL

### Description

You should examine the value of PRCANCEL after executing the DEF LPRINT statement. PRCANCEL returns _zTrue if the user pressed the "Cancel" button in the Print Job dialog; or _false if the user pressed the "OK" button. If PRCANCEL returns _zTrue, your program should not continue with the print operation.
You can also call PRCANCEL after executing DEF PAGE, to determine whether the user cancelled the Style dialog (the "Page Setup" dialog). However, your program normally does not need to take any special action in this case.

### See Also

DEF LPRINT; DEF PAGE; PRHANDLE; ROUTE
# Futurebasic/Language/Reference/push
## PUSH
### Syntax

PUSH(var) PUSH {BYTE|WORD|LONG}(address&)

### Description

These statements put 1, 2 or 4 bytes onto the CPU stack, and adjust the stack pointer by a corresponding amount. PUSH is the opposite of POP.
If you use the first syntax, the data is copied from var, which must be a variable. The number of bytes put onto the stack depends on the data type of var:
"Image Was Here"
(No other variable types are valid with PUSH(var).)
If you use the second syntax, the data is copied from the memory which begins at address&, which must be a long integer expression or a POINTER variable. The number of bytes put onto the stack depends on which keyword you use:
"Image Was Here"
In CPU68k compiles, PUSH always adjusts the stack pointer by an even number of bytes. If you use PUSH(byteVar) or PUSH BYTE(address&) in a CPU68k compile, the stack pointer will be adjusted by 2 bytes, even though only one byte is copied from byteVar or address&.
PUSH is meant for careful use by advanced programmers. Your system can crash if the stack pointer is not adjusted carefully.

### See Also

POP
# Futurebasic/Language/Reference/poundif
## #If
### Description

#if is a synonym for compile long if. If you use the #if statement, you must also use the #endif statement.

### Notes

In FBtoC compile long if is not supported and #if is the only available syntax.

### See Also

compile long if; #else; #endif
# Futurebasic/Language/Reference/print pound
## PRINT#
### Syntax

PRINT# deviceID,[printItem [{,|;}[printItem]...]]

### Description

This statement writes information formatted as text to the open file or serial port specified by deviceID. The list of printItem's is interpreted and formatted the same way as in the PRINT statement. PRINT# normally writes a carriage-return character (ASCII character 13) after writing the final printItem; to inhibit this behavior, put a comma or a semicolon at the end of the PRINT# statement.
PRINT# is typically used to write data which is to be viewed later in a text editor or word processing program; or to write data which is to be read later by the INPUT# statement. It generally formats its output differently than the WRITE# and WRITE FILE statements, which are better suited for transferring the contents of memory directly to the device. For example, consider this sample program fragment:
a% = -1623 PRINT #1, a% WRITE #1, a%
In this example, the PRINT# statement formats the number as text, and puts out 7 bytes, as follows:
00101101 (ASCII code for "-") 00110001 (ASCII code for "1") 00110110 (ASCII code for "6") 00110010 (ASCII code for "2") 00110011 (ASCII code for "3") 00100000 (ASCII code for a space character) 00001101 (ASCII code for a carriage-return character)
On the other hand, the WRITE# statement puts out the binary contents of a%. In memory, the short integer -1623 is stored as 1111100110101001; therefore, the WRITE# statement puts out these two bytes:
11111001 10101001

### See Also

PRINT;INPUT;WRITE;FILE;OPEN;DEF OPEN;ROUTE