home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Rarray
-
- PARAMETERS _qa, _qb, _qc, _qd, _qe
-
- * _qa is the name of the array to work with
- * _qb is the name of the database or work area to work with
- * _qc is the record number to work with; 0 means to APPEND BLANK
- * _qd is the field number to begin to work with
- * _qe is the number of fields to perform this operation with.
-
- DO CASE
- CASE PCOUNT() = 4
- _qe = 0
- CASE PCOUNT() = 3
- _qd = ""
- _qe = 0
- CASE PCOUNT() = 2
- _qc = 0
- _qd = ""
- _qe = 0
- CASE PCOUNT() = 1
- _qb = ""
- _qc = 0
- _qd = ""
- _qe = 0
- OTHERWISE
- RETURN(.F.)
- ENDCASE
-
- IF TYPE("_qd") = "N"
- _qd = FIELDNAME(_qd)
- ENDIF
-
- R_S_ARRAY(.T., _qa, _qb, _qc, _qd, _qe)
-
- RETURN(.T.)
-
- * End of File