home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR19
/
TDCO69.ZIP
/
INSTAMGR.PRG
< prev
next >
Wrap
Text File
|
1993-06-06
|
2KB
|
64 lines
/*------------------------------------------------------------------------------
MANEJO DE INSTALADORES
------------------------------------------------------------------------------*/
#include "tdco.ch"
#include "inkey.ch"
function InstMgr()
local bRefresh := { || InstRefresh() },;
GetList := {},;
aSay := {},;
aGet := {},;
nSelect := Select()
SELECT INSTALAD
InstScr()
// ------- GET Y APPEND ----------
@ 3,28 TGET INSTALAD->CODIGO;
PICTURE "@!";
VALID !( lExiste( INSTALAD->CODIGO ) )
@ 4,28 TGET INSTALAD->DESCRIPCIO;
PICTURE "@!"
aGet = AClone( GetList ) ; GetList = {}
// ---------- SAY ---------------
@ 3, 28 TSAY INSTALAD->CODIGO
@ 4, 28 TSAY INSTALAD->DESCRIPCIO
aSay = AClone( GetList ) ; GetList = {}
RecordMgr( aSay, aGet, bRefresh )
Scr( POP )
SELECT (nSelect)
LeeTblInstalad( "ReRead" )
return NIL
//----------------------------------------------------------------------------//
static function InstScr()
Caja( 2, 1, 5, 75, AreaLabel() )
@ 3, 3 SAY "Código.................: " COLOR aClr[ CLR_BOX, 5 ]
@ 4, 3 SAY "Descripción............: " COLOR aClr[ CLR_BOX, 5 ]
return NIL
//----------------------------------------------------------------------------//
static function InstRefresh()
@ 2,63 SAY PadL( LTrim( Str(RecNo()) ) + "/" + LTrim( Str(LastRec()) ), 10 );
COLOR aClr[ CLR_BOX, 2 ]
return NIL
//----------------------------------------------------------------------------//