>numfiles = adir(myarray,'c:\somefolder\*.mp3','D') >create cursor crsTemp (something) from array myarray >>
Specifies the name of an existing array whose contents are the name, type, precision, and scale for each field in the temporary table. You can use the FROM ARRAY clause instead of specifying individual fields. For the proper format of the contents of the array, see AFIELDS( ) Function.Try this
numfiles = adir(myarray,'c:\somefolder\*.mp3','D') create cursor crsTemp (something C(50)) APPEND FROM ARRAY myarray