LOCAL lcSafetySet, lnNoFiles, lnLenFileName, lcGenericBody Create CURSOR csrS3Files ( FILENAME c(12), SIZE n(8,0), CREATED d, INCLUDE l DEFAULT .F.) APPEND from ARRAY thisform.aFileArray && csr with list of S3 files - array got in .init() = ASORT( thisform.aFileArray, 1) && Sort array by filename lnNoFiles = ALEN( thisform.aFileArray, 1) With .cboTables && Add file names array to combo, inc. size and date last mod. info For I = 1 to lnNoFiles lnLenFileName = LEN( ALLTRIM( thisform.aFileArray( I, 1))) && Actual length of full filename lcGenericBody = SUBSTR( thisform.aFileArray( I, 1), 3, lnLenFileName-6) .AddListItem( PADR( lcGenericBody, 12), I, 1) .AddListItem( STR( thisform.aFileArray( I, 2)), I, 2) .AddListItem( DTOC( thisform.aFileArray( I, 3)), I, 3) EndFor .Value = .List( 1, 1) .Enabled = .T. Endwith