#include "INKEY.CH"
#include "SETCURS.CH"
FUNCTION Main
LOCAL aClrCol[6],aClrMon[6]
LOCAL cColor := SetColor( 'N/W,W+/W' )
Local nCol
Local nCont
Local cCodigo
Local cPant
Public membrete,aClr[7],xArea,zArea,cDirect,nCodEmp,cFichero
Public cEmpresa ,cPoblacion,aEmpresa[0]
* --------------Comprueba si el monitor el color o mono----------------------
* colores (normal,inverso,borde,fondo,no select)
* colores(letra/fondo)
aClrCol[1] := "B/BG,W+/RB+" //cPant *
aClrCol[2] := "BG/B,W+/R" //ventana *
aClrCol[3] := "BG+/B,W+/BG" //cdialog *
aClrCol[4] := "W+/R,W+/BG" //calert *
aClrCol[5] := "gr+/B,W+/R" //cven *
aClrCol[6] := "W+/RB+,RG+/B" //consult *
aClrMon[1] := "N/W,W+/N" // "W/N,N/W"
aClrMon[2] := "N/W,W+/N" // "W/N,N/W"
aClrMon[3] := "N/W,W+/N" // "N/W,W/N"
aClrMon[4] := "N/W,W+/N" // "W/N,N/W"
aClrMon[5] := 'N/W,W+/N' // 'N/W,W/N'
aClrMon[6] := 'N/W,W+/N' // 'w/n,n/w'
if Iscolor()
aClr := Aclone(aClrCol)
else
aClr := Aclone(aClrMon)
endif
* ---------------------------------------------------------------------------
Set bell off
Set century on
Set date ITALIAN
Set dele on
Set talk off
Set( _SET_WRAP , .T. )
Set( _SET_SCOREBOARD, .F. )
Set confirm off
Set exclusive off
SETMODE(25,80)
*------------------------------------------------------------------------------
While .t.
Scroll(0,0,24,79,25)
CajaConc(0,0,24,79,"BG")
EligeArea()
If nCodEmp == 0
exit
EndIf
Set Path to (xArea)
dbCloseAll()
Inicio()
EndDo
set default to
setcolor(cColor)
dbCloseAll()
cls
__quit()