home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Savearray
-
- 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
-
- PRIVATE _ext, _qaz
-
- _ext = LTRIM(TRIM(STR(LEN(_aname))))
- STORE "" TO AAAA&_ext.
- FOR _qaz = 1 TO LEN(_aname)
- _ext = LTRIM(TRIM(STR(_qaz)))
- STORE _aname[_qaz] TO AAAB&_ext.
- NEXT
- SAVE ALL LIKE AAA* TO &_afile.
- RETURN((DOSERROR() = 0) )
-
- * End of File
-
-