Código: Selecionar todos
FUNCTION IndDbf( cDbf )
LOCAL nCont, nCont2, aIndices, aIndDbf
aIndDbf := {}
aIndices := CnfDbfInd()
FOR nCont = 1 TO Len( aIndices )
IF aIndices[ nCont, 1 ] == cDbf
FOR nCont2 = 1 TO Len( aIndices[ nCont, 3 ] )
AAdd( aIndDbf, aIndices[ nCont, 3, nCont2 ] )
NEXT
EXIT
ENDIF
NEXT
RETURN aClone( aIndDbf )
Código: Selecionar todos
FUNCTION IndDbf( cDbf )
LOCAL aFileList, aTagList := {}, aThisFile, aThisTag
aFileList := CnfDbfInd()
FOR EACH aThisFile IN aFileList
IF aThisFile[ 1 ] == cDbf
FOR EACH aThisTag IN aThisFile[ 3 ]
AAdd( aTagList, aThisTag )
NEXT
EXIT
ENDIF
NEXT
RETURN aClone( aTagList )
