home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST225.PRG < prev    next >
Encoding:
Text File  |  1989-08-08  |  679 b   |  33 lines

  1. ********************
  2.  
  3. FUNCTION Memtoarray
  4.  
  5.    PARAMETERS _thevars
  6.  
  7.    IF TYPE(_thevars) != "C"    && Don't need to test for PCOUNT()
  8.       RETURN(.F.)                     && 'cuase if no parameter is passed
  9.    ENDIF                                 && the data type will be 'U'
  10.  
  11.     PRIVATE _counter, _ext, _qaz
  12.  
  13.    _counter = 0
  14.    DO WHILE .T.
  15.       _ext = LTRIM(STR(_counter+1))
  16.       IF TYPE("&_thevars.&_ext.") = "U"
  17.          EXIT
  18.       ENDIF
  19.       _counter = _counter + 1
  20.    ENDDO
  21.  
  22.    PUBLIC &_thevars.[_counter]
  23.  
  24.    FOR _qaz = 1 TO _counter
  25.       _ext = LTRIM(STR(_qaz))
  26.       &_thevars.[_qaz] = &_thevars.&_ext.
  27.       RELEASE &_thevars.&_ext.
  28.    NEXT
  29.  
  30.    RETURN(.T.)
  31.  
  32. * End of File
  33.