Mnemonics

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(New page: == (Allow Maximize) == Mnemonic: (Allow Maximize=state) Discussion: This mnemonic disables/enables the maximize controls on the COSW window. Use this mnemonic to prevent the user fr...)
Line 1: Line 1:
-
 
== (Allow Maximize) ==
== (Allow Maximize) ==
   
   
Line 97: Line 96:
   .
   .
   PRINT (1) (AutoCROn)
   PRINT (1) (AutoCROn)
 +
 +
== (BCC) ==
 +
 +
Email Mnemonic:  (BCC=string-argument) 
 +
Discussion:  The (BCC) mnemonic may be used to specify "blind carbon copy" recipients of your email message. 
 +
Example:  OPEN (1) "LEH"
 +
PRINT (1) (BCC="brian@@signature.net")
 +
 +
== (Begin Metafile) ==
 +
 +
Mnemonic:  (BeginMetafile = FileName) 
 +
Discussion:  Initiates the collecting of GDI functions into a virtual memory block (Metafile) that is passed to COSW in a single write rather than one function at a time enhancing performance. If FileName is non-blank the file can be saved to disk and recalled at a later time (see ExecuteMetafile). 
 +
 +
 +
Read about other Email Mnemonics 
 +
 +
 +
== (BeginWaitCursor) ==
 +
 +
Mnemonic:  (BeginWaitCursor) 
 +
Discussion:  This mnemonic turns on the hourglass cursor.
 +
See (EndWaitCursor) and (RestoreWaitCursor).
 +
 +
Example:  Print (BeginWaitCursor)
 +
.
 +
.
 +
.
 +
Print (EndWaitCursor)
 +
 +
 +
== (BF) ==
 +
 +
Mnemonic:  (BF) 
 +
Hex equivalent:  "@0406@" 
 +
Discussion:  Blank fill.
 +
The (BF) control code replaces all characters from the cursor position to the end of the line with blanks. The current mode -- foreground, background, or invisible (suppressed background) -- determines the type of blank. When this control is complete, the cursor is positioned at the beginning of the next line (or the next available foreground position on the screen).
 +
 +
This control code may also include a positioning statement to start the fill operation from a specific point on the screen.
 +
 +
Example:  a. 100 FORMAT (SB);(BF),@(10,0)
 +
  .
 +
  PRINT (0,100)
 +
 +
b. PRINT (0) (SB);(BF),@(10,0)
 +
 +
This example sets the video mode to background (SB), and then blank fills the top row of the screen (i.e., row 0) from position 10 to the end of the line. 
 +
 +
 +
== (BIOS Mouse On) ==
 +
 +
Mnemonic:  (BIOS Mouse On) 
 +
Hex equivalent:  "@0E0905@" 
 +
Discussion:  This control opens the BIOS mouse driver (if possible).
 +
Also see (Mouse On) and (Enhanced Mouse On).
 +
 +
Example:  a. 100 FORMAT (BIOS Mouse On)
 +
  .
 +
  PRINT (0,100
 +
 +
b. PRINT (0) (BIOS Mouse On
 +
 +
 +
==  (BF) ==
 +
 +
Mnemonic:  (BF) 
 +
Hex equivalent:  "@0406@" 
 +
Discussion:  Blank fill.
 +
The (BF) control code replaces all characters from the cursor position to the end of the line with blanks. The current mode -- foreground, background, or invisible (suppressed background) -- determines the type of blank. When this control is complete, the cursor is positioned at the beginning of the next line (or the next available foreground position on the screen).
 +
 +
This control code may also include a positioning statement to start the fill operation from a specific point on the screen.
 +
 +
Example:  a. 100 FORMAT (SB);(BF),@(10,0)
 +
  .
 +
  PRINT (0,100)
 +
 +
b. PRINT (0) (SB);(BF),@(10,0)
 +
 +
This example sets the video mode to background (SB), and then blank fills the top row of the screen (i.e., row 0) from position 10 to the end of the line. 
 +
 +
 +
== (BM) ==
 +
 +
Mnemonic:  (BM) 
 +
Hex equivalent:  "@0405@" 
 +
Discussion:  Blind mode.
 +
The (BM) control code establishes "blind mode" -- an attribute where characters entered from the keyboard do not appear on the screen. Up to 32 characters can be entered with the video device in blind mode. This control code is typically used for entering invisible passwords.
 +
 +
Example:  a. LENGTH 32 & LOCAL PASSWORD$
 +
  100 FORMAT (BM)
 +
  .
 +
  PRINT (0,100)
 +
  INPUT (0) PASSWORD$
 +
 +
b. LENGTH 32 & LOCAL PASSWORD$
 +
  .
 +
  PRINT (0) (BM)
 +
  INPUT (0) PASSWORD$
 +
 +
This example shows how to set the blind mode input buffer. The (BM) control code is written and the data is entered into the variable named PASSWORD$. This data will not be visible on the screen as it is entered.

Revision as of 11:00, 31 May 2009

Contents

(Allow Maximize)

Mnemonic: (Allow Maximize=state) Discussion: This mnemonic disables/enables the maximize controls on the COSW window. Use this mnemonic to prevent the user from maximizing the COSW window. State is a flag indicating which function is to be performed:

0 Disable the maximize controls 1 Enable the maximize controls


Example:  ! Disable the maximize controls Print (Allow Maximize=0) . . . ! Enable the maximize controls Print (Allow Maximize=1)


Archive mnemonics

Mnemonic Description (Document=longfilename,dir) Specifies a name for a copy of an archive document (SpoolMessage=DocumentName) Specifies the filename to be used for a document stored in an archive.


(Auto Metafile)

Mnemonic: (AutoMetafile = State) Discussion: Enables/disables the automatic use of un-named metafiles. AutoMetafile is ON by default. When disabled, the existing metafile (if present) will be executed. Where State is:

AMF.DISABLE = 0 ! Disables automatic metafiles AMF.ENABLE = 1 ! Enables automatic metafiles


(Auto Tab Off)

Mnemonic: (Auto TAB Off) Hex equivalent: "@0E0004@" Discussion: This mnemonic turns off the "automatic tab mode." Also see (Auto TAB On).

Example: a. 100 FORMAT (Auto TAB Off)

  .
  PRINT (0,100)

b. PRINT (0) (Auto TAB Off)


(Auto Tab On)

Mnemonic: (Auto TAB On) Hex equivalent: "@0E0003@" Discussion: This mnemonic turns on the "automatic tab mode." In this mode, the cursor automatically advances to the next input field when it reaches the last character of the current input field. Also see (Auto TAB Off).

Example: a. 100 FORMAT (Auto TAB On)

  .
  PRINT (0,100)

b. PRINT (0) (Auto TAB On)


(AutoCROff)

Mnemonic: (AutoCROff) Discussion: The (AutoCROff) mnemonic turns off the extra CR/LF added by CosP to the end of each line not followed with a (TR). The mnemonic is in effect until either the printer is closed or the (AutoCROn) mnemonic is sent. The effect will persist over an EXIT, so a subprogram may issue the mnemonic for a printer opened by the parent program. History: Support for this mnemonic was added in Comet 2004. Example: a. 100 FORMAT (AutoCROff)

  .
  OPEN (1) "LP1"
  .
  PRINT (1,100)


b. OPEN (1) "LP1"

  .
  PRINT (1) (AutoCROff)


(AutoCROn)

Mnemonic: (AutoCROn) Discussion: The (AutoCROn) mnemonic turns on the extra CR/LF added by CosP to the end of each line not followed with a (TR). The mnemonic is in effect until either the printer is closed or the (AutoCROff) mnemonic is sent. The effect will persist over an EXIT, so a subprogram may issue the mnemonic for a printer opened by the parent program. History: Support for this mnemonic was added in Comet 2004. Example: a. 100 FORMAT (AutoCROn)

  .
  OPEN (1) "LP1"
  .
  PRINT (1,100)


b. OPEN (1) "LP1"

  .
  PRINT (1) (AutoCROn)

(BCC)

Email Mnemonic: (BCC=string-argument) Discussion: The (BCC) mnemonic may be used to specify "blind carbon copy" recipients of your email message. Example: OPEN (1) "LEH" PRINT (1) (BCC="brian@@signature.net")

(Begin Metafile)

Mnemonic: (BeginMetafile = FileName) Discussion: Initiates the collecting of GDI functions into a virtual memory block (Metafile) that is passed to COSW in a single write rather than one function at a time enhancing performance. If FileName is non-blank the file can be saved to disk and recalled at a later time (see ExecuteMetafile).


Read about other Email Mnemonics   


(BeginWaitCursor)

Mnemonic: (BeginWaitCursor) Discussion: This mnemonic turns on the hourglass cursor. See (EndWaitCursor) and (RestoreWaitCursor).

Example: Print (BeginWaitCursor) . . . Print (EndWaitCursor)


(BF)

Mnemonic: (BF) Hex equivalent: "@0406@" Discussion: Blank fill. The (BF) control code replaces all characters from the cursor position to the end of the line with blanks. The current mode -- foreground, background, or invisible (suppressed background) -- determines the type of blank. When this control is complete, the cursor is positioned at the beginning of the next line (or the next available foreground position on the screen).

This control code may also include a positioning statement to start the fill operation from a specific point on the screen.

Example: a. 100 FORMAT (SB);(BF),@(10,0)

  .
  PRINT (0,100)

b. PRINT (0) (SB);(BF),@(10,0)

This example sets the video mode to background (SB), and then blank fills the top row of the screen (i.e., row 0) from position 10 to the end of the line.


(BIOS Mouse On)

Mnemonic: (BIOS Mouse On) Hex equivalent: "@0E0905@" Discussion: This control opens the BIOS mouse driver (if possible). Also see (Mouse On) and (Enhanced Mouse On).

Example: a. 100 FORMAT (BIOS Mouse On)

  .
  PRINT (0,100

b. PRINT (0) (BIOS Mouse On


(BF)

Mnemonic: (BF) Hex equivalent: "@0406@" Discussion: Blank fill. The (BF) control code replaces all characters from the cursor position to the end of the line with blanks. The current mode -- foreground, background, or invisible (suppressed background) -- determines the type of blank. When this control is complete, the cursor is positioned at the beginning of the next line (or the next available foreground position on the screen).

This control code may also include a positioning statement to start the fill operation from a specific point on the screen.

Example: a. 100 FORMAT (SB);(BF),@(10,0)

  .
  PRINT (0,100)

b. PRINT (0) (SB);(BF),@(10,0)

This example sets the video mode to background (SB), and then blank fills the top row of the screen (i.e., row 0) from position 10 to the end of the line.


(BM)

Mnemonic: (BM) Hex equivalent: "@0405@" Discussion: Blind mode. The (BM) control code establishes "blind mode" -- an attribute where characters entered from the keyboard do not appear on the screen. Up to 32 characters can be entered with the video device in blind mode. This control code is typically used for entering invisible passwords.

Example: a. LENGTH 32 & LOCAL PASSWORD$

  100 FORMAT (BM)
  .
  PRINT (0,100)
  INPUT (0) PASSWORD$

b. LENGTH 32 & LOCAL PASSWORD$

  .
  PRINT (0) (BM)
  INPUT (0) PASSWORD$

This example shows how to set the blind mode input buffer. The (BM) control code is written and the data is entered into the variable named PASSWORD$. This data will not be visible on the screen as it is entered.