i like to change FOR / NEXT into FOR EACH
- Code: Select all Expand view
- FUNCTION GetMetaData( cPath, cFilename )
LOCAL nItem, iMax := 333
LOCAL objShell := CreateObject( "Shell.Application" )
objFolder := objShell:Namespace( cPath )
objFolderItem := objFolder:ParseName( cFilename )
FOR nItem := 1 TO iMax
cFileInfo := objFolder:GetDetailsOf( objFolderItem, nItem )
cHeaderInfo := objFolder:GetDetailsOf( objFolder:Items, nItem )
IF !EMPTY( cHeaderInfo ) .AND. !EMPTY( cFileInfo )
AADD( aRet, { STRZERO( nItem, 3 ),;
TRIM( cHeaderInfo ),;
STRTRAN( TRIM( aData[ 2 ] ), "?", "" ) } )
ENDIF
NEXT
objShell := NIL
RETURN ACLONE( aRet )
who can help me please