Download P 4 - a2

Transcript
SAVESCREEN() returns the specified screen region as a character
string.
SCROLL()
«
|
|SCROLL([nTop], [nLeft],
|
[nBottom], [nRight],
[nVert] [nHoriz])
⇒ NIL
|
nTop, nLeft, nBottom, nRight define the scroll region coordinates.
defines the number of rows to scroll, vertically. A positive value scrolls up the specified number of rows. A negative value
scrolls down the specified number of rows.
A value of zero disables vertical scrolling.
If nVert is not specified, zero is assumed.
defines the number of rows to scroll horizontally. A positive value scrolls left the
specified number of columns. A negative
value scrolls right the specified number of
columns. A value of zero disables horizontal scrolling. If nHoriz is not specified, zero is assumed. If you supply neither
nVert or nHoriz parameters to SCROLL(),
the area specified by the first four parameters will be blanked.
nVert
nHoriz
SCROLL() is a screen function that scrolls a screen region up or
down a specified number of rows. When a screen scrolls up, the
first line of the region is erased, all other lines are moved up, and a
blank line is displayed in the current standard color on the bottom
line of the specified region. If the region scrolls down, the operation
is reversed. If the screen region is scrolled more than one line, this
process is repeated.
SET() returns the current value of the specified setting.
Inside nB, the function SET() is not so easy to use as inside the Clipper environment. This because nB cannot support manifest constants
and a numeric specifier nSpecifier is not easy to manage. Instead of
SET() you can use SETVERB().
SETBLINK()
«
|
|SETBLINK( lToggle ) ⇒ lCurrentSetting
|
[
]
changes the meaning of the asterisk (*)
character when it is encountered in a SETCOLOR() string. Specifying true (‘.T.’)
sets character blinking on and false (‘.F.’)
sets background intensity. The default is
true (‘.T.’).
lToggle
SETBLINK() returns the current setting as a logical value.
SETCANCEL()
«
|
|SETCANCEL( lToggle ) ⇒ lCurrentSetting
|
[
]
changes the availability of Alt-C and CtrlBreak as termination keys. Specifying true
(‘.T.’) allows either of these keys to terminate an application and false (‘.F.’) disables both keys. The default is true (‘.T.’).
lToggle
SETCANCEL() returns the current setting as a logical value.
SETCOLOR()
«
|
|SETCOLOR( cColorString ) ⇒ cColorString
|
SECONDS()
[
«
|
|SECONDS() ⇒ nSeconds
|
SETCURSOR()
«
|
|SETCURSOR( nCursorShape ) ⇒ nCurrentSetting
|
[
SELECT()
«
|
|SELECT([cAlias]) ⇒ nWorkArea
|
is the target work area alias name.
cAlias
nCursorShape
SELECT() returns the work area of the specified alias as a integer
numeric value.
is a number indicating the shape of the cursor.
nCursorShape == 0 None
nCursorShape == 1 Underline
nCursorShape == 2 Lower half block
nCursorShape == 3 Full block
nCursorShape == 4 Upper half block
SETKEY()
|
|SET(nSpecifier, [expNewSetting],
|
⇒ CurrentSetting
«
[lOpenMode])
|
|SETKEY(nInkeyCode,
|
lOpenMode
]
SETCURSOR() returns the current cursor shape as a numeric value.
SET()
«
expNewSetting
is a character string containing a list
of color attribute settings for subsequent
screen painting.
cColorString
SECONDS() returns the system time as a numeric value in the form
seconds.hundredths. The numeric value returned is the number of
seconds elapsed since midnight, and is based on a twenty-four hour
clock in a range from zero to 86399.
nSpecifier
]
is a numeric value that identifies the setting
to be inspected or changed.
is an optional argument that specifies a
new value for the nSpecifier. The type of
expNewSetting depends on nSpecifier.
is a logical value that indicates whether or
not files are opened for some settings. A
value of false (‘.F.’) means the file should
be truncated. A value of true (‘.T.’) means
the file should be opened in append mode.
In either case, if the file does not exist, it
is created. If this argument is not specified,
the default is append mode.
1202
nInkeyCode
bAction
[bAction])
⇒ bCurrentAction
|
is the INKEY() value of the key to be associated or queried.
specifies a code block that is automatically executed whenever the specified key
is pressed during a wait state.
SETKEY() returns the action block currently associated with the
specified key, or NIL if the specified key is not currently associated
with a block.
1203