cleanups
This commit is contained in:
@@ -152,11 +152,11 @@
|
||||
--------------------------- </par>
|
||||
|
||||
<table>
|
||||
dbedit.ch Value Meaning
|
||||
dbedit.ch Meaning
|
||||
|
||||
DE_ABORT 0 Abort dbEdit().
|
||||
DE_CONT 1 Continue dbEdit() as is.
|
||||
DE_REFRESH 2 Force reread/redisplay of all data rows.
|
||||
DE_ABORT Abort dbEdit().
|
||||
DE_CONT Continue dbEdit() as is.
|
||||
DE_REFRESH Force reread/redisplay of all data rows.
|
||||
</table>
|
||||
|
||||
The user function is called once in each of the following cases:
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
$EXAMPLES$
|
||||
? "You can use : " + hb_ntos( DiskSpace() ) + " bytes "
|
||||
|
||||
Note: See tests/diskspac.prg for another example
|
||||
// NOTE: See tests/diskspac.prg for another example
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
@@ -101,7 +101,7 @@
|
||||
? "You can use : " + hb_ntos( hb_DiskSpace() ) + " bytes " +;
|
||||
"Out of a total of " + hb_ntos( hb_DiskSpace( "C:", HB_FS_TOTAL ) )
|
||||
|
||||
Note: See tests/diskspac.prg for another example
|
||||
// NOTE: See tests/diskspac.prg for another example
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
|
||||
@@ -43,16 +43,16 @@
|
||||
the default value is 0. The file open modes are as follows:
|
||||
|
||||
<table>
|
||||
nMode fileio.ch Meaning
|
||||
nMode Meaning
|
||||
|
||||
0 FO_READ Read only
|
||||
1 FO_WRITE Write only
|
||||
2 FO_READWRITE Read/write
|
||||
16 FO_EXCLUSIVE Exclusive read only
|
||||
32 FO_DENYWRITE Prevent others from writing
|
||||
48 FO_DENYREAD Deny read only
|
||||
64 FO_DENYNONE Not deny, Let to others Read / Write
|
||||
64 FO_SHARED same as FO_DENYNONE
|
||||
FO_READ Read only
|
||||
FO_WRITE Write only
|
||||
FO_READWRITE Read/write
|
||||
FO_EXCLUSIVE Exclusive read only
|
||||
FO_DENYWRITE Prevent others from writing
|
||||
FO_DENYREAD Deny read only
|
||||
FO_DENYNONE Not deny, Let to others Read / Write
|
||||
FO_SHARED same as FO_DENYNONE
|
||||
</table>
|
||||
|
||||
If there is an error in opening a file, a F_ERROR will be returned by
|
||||
@@ -74,7 +74,7 @@
|
||||
C
|
||||
$FILES$
|
||||
Library is core
|
||||
Header is fileio.ch
|
||||
Header is fileio.ch
|
||||
$SEEALSO$
|
||||
FCreate(), FError(), FClose()
|
||||
$END$
|
||||
@@ -116,12 +116,12 @@
|
||||
this function.
|
||||
|
||||
<table>
|
||||
<nAttribute> fileio.ch Meaning
|
||||
<nAttribute> Meaning
|
||||
|
||||
0 FC_NORMAL Normal/Default, Read/Write
|
||||
1 FC_READONLY Read-only file attribute is set
|
||||
2 FC_HIDDEN Hidden, Excluded from normal DIR search
|
||||
4 FC_SYSTEM Create, Excluded from normal DIR search
|
||||
FC_NORMAL Normal/Default, Read/Write
|
||||
FC_READONLY Read-only file attribute is set
|
||||
FC_HIDDEN Hidden, Excluded from normal DIR search
|
||||
FC_SYSTEM Create, Excluded from normal DIR search
|
||||
</table>
|
||||
$EXAMPLES$
|
||||
#include "fileio.ch"
|
||||
@@ -509,11 +509,11 @@
|
||||
file pointer should he moved, as shown in the following table:
|
||||
|
||||
<table>
|
||||
<nOrigin> fileio.ch File position
|
||||
<nOrigin> File position
|
||||
|
||||
0 FS_SET Beginning of file
|
||||
1 FS_RELATIVE Current file pointer position
|
||||
2 FS_END End of file
|
||||
FS_SET Beginning of file
|
||||
FS_RELATIVE Current file pointer position
|
||||
FS_END End of file
|
||||
</table>
|
||||
|
||||
If a value is not provided for <nOrigin>, it defaults to 0 and
|
||||
|
||||
@@ -129,11 +129,11 @@
|
||||
that allow you to distinguish between VAR and CLASS VAR:
|
||||
|
||||
table>
|
||||
hboo.ch Value Meaning
|
||||
hboo.ch Meaning
|
||||
|
||||
HB_MSGLISTALL 0 All types
|
||||
HB_MSGLISTCLASS 1 CLASS VAR only
|
||||
HB_MSGLISTPURE 2 VAR only
|
||||
HB_MSGLISTALL All types
|
||||
HB_MSGLISTCLASS CLASS VAR only
|
||||
HB_MSGLISTPURE VAR only
|
||||
/table>
|
||||
|
||||
VAR are instance variable usable within each object from a class,
|
||||
@@ -350,16 +350,14 @@
|
||||
? oHappy:Smile( 3 ) // *SMILE*
|
||||
|
||||
STATIC FUNCTION MySmile( nType )
|
||||
LOCAL cSmile
|
||||
DO CASE
|
||||
CASE nType == 1
|
||||
cSmile := ":)"
|
||||
CASE nType == 2
|
||||
cSmile := ";)"
|
||||
CASE nType == 3
|
||||
cSmile := "*SMILE*"
|
||||
ENDCASE
|
||||
RETURN cSmile
|
||||
IF HB_ISNUMERIC( nType )
|
||||
SWITCH nType
|
||||
CASE 1 ; RETURN ":)"
|
||||
CASE 2 ; RETURN ";)"
|
||||
CASE 3 ; RETURN "*SMILE*"
|
||||
ENDCASE
|
||||
ENDIF
|
||||
RETURN NIL
|
||||
$STATUS$
|
||||
R
|
||||
$COMPLIANCE$
|
||||
@@ -398,7 +396,7 @@
|
||||
with the name <cInlineName> already exist in <oObject>.
|
||||
$EXAMPLES$
|
||||
// create a new THappy class and add a Smile INLINE method
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
bInline := {| nType | { ":)", ";)", "*SMILE*" }[ nType ] }
|
||||
__objAddInline( oHappy, "Smile", bInline )
|
||||
? oHappy:Smile( 1 ) // :)
|
||||
@@ -440,7 +438,7 @@
|
||||
<cDataName> already exist in <oObject>.
|
||||
$EXAMPLES$
|
||||
// create a new THappy class and add a lHappy VAR
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
__objAddData( oHappy, "lHappy" )
|
||||
oHappy:lHappy := .T.
|
||||
IF oHappy:lHappy
|
||||
@@ -559,7 +557,7 @@
|
||||
mechanism.
|
||||
$EXAMPLES$
|
||||
// create a new THappy class and add a Smile INLINE method
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
bMyInline := {| nType | { ":)", ";)" }[ nType ] }
|
||||
bYourInline := {| nType | { "*SMILE*", "*WINK*" }[ nType ] }
|
||||
__objAddInline( oHappy, "Smile", bMyInline )
|
||||
@@ -716,7 +714,7 @@
|
||||
with the name <cDataName> does not exist in <oObject>.
|
||||
$EXAMPLES$
|
||||
// create a new THappy class and add a lHappy VAR
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
oHappy := HBClass():New( "THappy" )
|
||||
__objAddData( oHappy, "lHappy" )
|
||||
? __objHasData( oHappy, "lHappy" ) // .T.
|
||||
// remove lHappy VAR
|
||||
|
||||
@@ -459,7 +459,7 @@
|
||||
This function is not CA-Cl*pper compliant
|
||||
$FILES$
|
||||
Library is rdd
|
||||
Header is dbstruct.ch
|
||||
Header is dbstruct.ch
|
||||
$SEEALSO$
|
||||
AFields()*, dbStruct()
|
||||
$END$
|
||||
@@ -1121,7 +1121,7 @@
|
||||
C
|
||||
$FILES$
|
||||
Library is rdd
|
||||
Header is dbstruct.ch
|
||||
Header is dbstruct.ch
|
||||
$SEEALSO$
|
||||
AFields()*
|
||||
$END$
|
||||
|
||||
Reference in New Issue
Block a user