home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Restarray
-
- PARAMETERS _afile, _aname
-
- * _file is the name of the file to write things to WITHOUT EXTENTION
- * _aname is the name of the array to save to disk.
-
- IF PCOUNT() != 2
- RETURN(.F.)
- ELSEIF TYPE("_afile") + TYPE("_aname") != "CA"
- RETURN(.F.)
- ENDIF
-
- IF EMPTY(AT(".", _afile))
- _afile = _afile + ".ARR"
- ENDIF
-
- RESTORE FROM &_afile. ADDITIVE
-
- PRIVATE _ext, _qaz
-
- FOR _qaz = 1 TO LEN(_aname)
- _ext = LTRIM(TRIM(STR(_qaz)))
- STORE AAAB&_ext. TO _aname[_qaz]
- NEXT
- RELEASE ALL LIKE AAA*
- RETURN( DOSERROR() = 0 )
-
- * End of File
-
-