home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Memtoarray
-
- PARAMETERS _thevars
-
- IF TYPE(_thevars) != "C" && Don't need to test for PCOUNT()
- RETURN(.F.) && 'cuase if no parameter is passed
- ENDIF && the data type will be 'U'
-
- PRIVATE _counter, _ext, _qaz
-
- _counter = 0
- DO WHILE .T.
- _ext = LTRIM(STR(_counter+1))
- IF TYPE("&_thevars.&_ext.") = "U"
- EXIT
- ENDIF
- _counter = _counter + 1
- ENDDO
-
- PUBLIC &_thevars.[_counter]
-
- FOR _qaz = 1 TO _counter
- _ext = LTRIM(STR(_qaz))
- &_thevars.[_qaz] = &_thevars.&_ext.
- RELEASE &_thevars.&_ext.
- NEXT
-
- RETURN(.T.)
-
- * End of File