S - Petewg/harbour-core GitHub Wiki
Back to Home
-
SaveScreen(
[<nTop>], [<nLeft>], [<nBottom>], [<nRight>]) β cScreen
saves portion or entire screen. -
Scroll(
[<nTop>], [<nLeft>], [<nBottom>], [<nRight>], [<nVert>], [<nHoriz>]) β NIL
scrolls portion or entire screen. -
Seconds() β nSeconds.hundredths.
returns the system time as a numeric value in the formsssss.ff(range:0.00 - 86399.99), which number is in fact, the number of seconds elapsed since midnight, based on a twenty-four hour clock. -
Secs(
<cTime>) β nSeconds
converts<cTime>to seconds (integer). For empty or invalid<cTime>returns0. -
Select(
[<cAlias>]) β nWorkArea
returns the number of workarea with the given<cAlias>. If no<cAlias>specified, the currently selected work area number is returned or1if none selected (used). If a<cAlias>is given but it doesn't exist or is invalid, function returns0zero.
NOTE: TheSelect(<cAlias>)function does NOT select the<cAlias>workarea, (i.e., does not change current workarea), it just retrieves and return its number (if any).
Yet, it can be easily confused (but must not!) withSELECTcommand.
For example:USE sales SHARED NEW USE customers SHARED NEW ? Alias() // --> "customers" // using Select() function ? Select( "sales" ) // --> 1 // current workarea didn't change ? Alias() // --> "customers" // using SELECT command to change current workarea SELECT ("sales") ? Alias() // --> "sales"
-
Set(
<nSpecifier>, [<expNewSetting>], [<lOpenMode>]) β lCurrentSetting
Inspects and / or changes a system setting; returns the current (old) setting.
Refer toset.chheader file for (plenty of) available settings.
In fact, to document all settings (or at least the most significant of them), this function requires a separate page! (currently started here) -
SetBlink(
[<lToggle>]) β lCurrentSetting
toggles blink state by changes the meaning of the asterisk (*) in a color string. When.T.blinking is on, when.F.background intensity is on. (Default=.T.) -
SetCancel(
[<lToggle>]) β lCurrentSetting -
SetColor(
[<cColorString>]) β cCurrentColor -
SetCursor(
[<nCursorShape>]) β nCurrentSetting -
SetKey(
<nInkeyCode>, [<bAction>]) β bCurrentAction -
SetMode(
<nRows>, <nCols>) β lSuccess -
SetPos(
<nRow>, <nCol>) β NIL -
SetPrc(
<nRow>, <nCol>) β NIL -
SoundEx(
<cString>) β cSoundExString
converts<cString>to a four-character code used to find similar-sounding words or names. The first character of the code is the first character of<cString>and the rest three are coded numbers. Vowels are ignored unless they are the first letter of the string. It's possibly useful function to search for sound-alike english words. Does NOT support characters with codes above 127 in ASCII table. -
Space(
<nNumber>) β cSpaceChars
returns a string that containsnNumberspace character(s) (ASCII character 32). -
Sqrt(
<nNumber>) β nSquareRoot
returns the square root of<nNumber>. The precision of this evaluation is based solely on the settings of the SET DECIMAL TO command. Any negative number passed as<nNumber>will always return a0. -
StoD(
[<cDate>]) β dDate
converts a date string to date value formatted asyyyymmdd. -
Str(
<nNumber>, [<nLength>], [<nDecimals>]) β cNumber
converts a numeric expression<nNumber>to a character string.
<nLength>is the length of the character string to return, including decimal digits, decimal point, and sign.<nDecimals>is the number of decimal places to return. -
StrTran(
<cString>, <cFindString>, [<cReplaceWith>], [<nStart>], [<nOccurences>]) β cNewString
it searches into<cString>for any occurrence of<cFindString>, and replaces it with<cReplaceWith>. If<cRepLaceWith>is not specified, a NULL byte will replace the<cFindString>or in other words the<cFindString>will be removed.<nStart>is the starting occurrence to be replaced (default is 1st occurence).<nOccurrences>is the number of occurrences to be replaced (default is all occurences). -
StrZero(
<nNumber>, [<nLength>], [<nDecimals>]) β cNumber
converts a numeric expression<nNumber>to a character string, padded with leading zero(s).
<nNumber>is the numeric expression to be converted to a character string.<nLength>is the length of the character string to return, including decimal digits, decimal point, and sign.<nDecimals>is the number of decimal places to return. -
Stuff(
<cString>, <nStart>, <nDelete>, <cInsert>) β cNewString
inserts and/or deletes characters in a string. Basically, inserts<cInsert>character(s) at position<nPos>and concurrently deletes<nDelete>character(s) starting from<nStart>and beyond. Evidently, if<nDeleteis0no character is deleted. Likewise if<cInsert>is null string"", nothing is inserted. -
SubStr(
<cString>, <nStart>, [<nCount>]) β cSubstring
returns a sub-string extracted from the string<cString>.<nStart>is the position of<cString>from which it'll start.<nCount>is the number of characters to be returned and if not given, all characters from<nStart>up to the end of<cString>will be returned.
Back to Home
* Copyright Β© 2016βpresent Pete D.