...
...
IF !(VALTYPE( AbreDbf("ARTICULO", .T., .F. , , cPathDbf+cSubCarp, {"articulo" }, "Articulos" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("PATRON", .T., .F. , , cPathDbf+cSubCarp, {"PATRON" }, "Patrones" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("PERSONA" , .T., .F., , cPathDbf, {"PERSONA"},"Personas") ) == "O" .AND. ;
VALTYPE( AbreDbf("IGV" , .T., .F., , cPathDBF, , "I.G.V." ) ) == "O" .AND. ;
VALTYPE( AbreDbf("PORC" , .T., .F., , cPathDBF, , "Porcentaje" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("UBICA" , .T., .F., , cPathDBF, {"UBICA" }, "Ubicaciones" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("UBIGEO" , .T., .F., , cPathDBF, {"UBIGEO" }, "Ubicacion Geografica" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("CODERROR", .T., .F., , cPathDBF, {"CODERROR" }, "Codigo de Errores" ) ) == "O" .AND. ;
VALTYPE( AbreDbf(cDbfGuia , .T., .F., "CABGUIA", cPathDbf, {cDbfGuia}, "Cabecera") ) == "O" .and. ;
VALTYPE( AbreDbf(cDbfDGuia , .T., .F., "DETGUIAD", cPathDbf, {cDbfDGuia}, "Movimientos de guias" ) ) == "O" .AND. ;
VALTYPE( AbreDbf(cDbfParte , .T., .F., "CABPARTE", cPathDbf, {cDbfParte}, "Cabecera de Parte") ) == "O" .and. ;
VALTYPE( AbreDbf(cDbfdParte , .T., .F., "DETPARTE", cPathDbf, {cDbfdParte}, "Movimientos de partes" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("TIPNOTA" , .T., .F. , , cPathDBF, {"TIPNOTA"}, "Tipos de Nota" ) ) == "O" .AND. ;
VALTYPE( AbreDbf(cDbfNc, .T., .F., "CABNC", cPathDbf, {cDbfNc}, "Cabecera de NC") ) == "O" .and. ;
VALTYPE( AbreDbf(cDbfDNc, .T., .F., "DETNC", cPathDbf,{cDbfDNc}, "Detalle de NC") ) == "O" .and. ;
VALTYPE( AbreDbf(cDbfFac , .T., .F., "FACTURA", cPathDbf, {cDbfFac}, "Facturas" ) ) == "O" .AND. ;
VALTYPE( AbreDbf(cDbfDFac , .T., .F., "DETFAC", cPathDbf, {cDbfDFac} ,"Detalle de Facturas" ) ) == "O" .AND. ;
VALTYPE( AbreDbf(cDbfAnu , .T., .F., "ANULADA", cPathDbf, {cDbfAnu} ,"Comprob. Anulados" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("CONPAG" , .T., .F., , cPathDBF, {"CONPAG"}, "Condiciones de Pago" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("MCODI" , .T., .F., , cPathDbf+cSubCodi, {"MCODI"}, "Proveedores" ) ) == "O" .AND. ;
VALTYPE( AbreDbf("EMPRESA" , .T., .F. , , cPathDBF, {"empresa"}, "Empresas" ) ) == "O" ;
)
lOk:=.f.
Msgalert("El archivo esta siendo usado")
IIF( Select("PERSONA" ) <> 0, PERSONA->( DBCLOSEAREA() ), )
IIF( Select("IGV" ) <> 0, IGV->( DBCLOSEAREA() ), )
IIF( Select("PORC" ) <> 0, PORC->( DBCLOSEAREA() ), )
IIF( Select(cDbfGuia) <> 0, (cDbfGuia)->( DBCLOSEAREA() ), )
IIF( Select(cDbfDGuia) <> 0, (cDbfDGuia)->( DBCLOSEAREA() ), )
IIF( Select(cDbfParte) <> 0, (cDbfParte)->( DBCLOSEAREA() ), )
IIF( Select(cDbfdParte) <> 0, (cDbfdParte)->( DBCLOSEAREA() ), )
IIF( Select("MCODI") <> 0, MCODI->( DBCLOSEAREA() ), )
IIF( Select("ARTICULO") <> 0, ARTICULO->( DBCLOSEAREA() ), )
IIF( Select("CONPAG") <> 0, CONPAG->( DBCLOSEAREA() ), )
IIF( Select("EMPRESA" ) <> 0, EMPRESA->( DBCLOSEAREA() ), )
IIF( Select("PATRON" ) <> 0, PATRON->( DBCLOSEAREA() ), )
IIF( Select("Factura") <> 0, Factura->( DBCLOSEAREA() ), )
IIF( Select("detfac") <> 0, detfac->( DBCLOSEAREA() ), )
IIF( Select("ANULADA") <> 0, ANULADA->( DBCLOSEAREA() ), )
IIF( Select("Ubica") <> 0, Ubica->( DBCLOSEAREA() ), )
IIF( Select("Ubigeo") <> 0, Ubigeo->( DBCLOSEAREA() ), )
IIF( Select("CodError") <> 0, CodError->( DBCLOSEAREA() ), )
IIF( Select("CABNC") <> 0, CABNC->( DBCLOSEAREA() ), )
IIF( Select("DETNC") <> 0, DETNC>( DBCLOSEAREA() ), )
IIF( Select("TIPNOTA") <> 0, TIPNOTA->( DBCLOSEAREA() ), )
ENDIF