Présentation
Documentation
L'équipe
Sérialisation
 
   
Programmes
Objets
Libs Utilitaires
Libs Internes
     
   
Editeur
Syntaxes
Windows
Versions
     

SCR/AL1 - TOME IV. Les librairies internes

3. La librairie scr4i

3.9 Liaison MPAGE-ISAM

3.9.1 MP_rebuild_buf (file s_mpis.c:583)

Syntaxe

MP_rebuild_buf(mp)
MPAGE *mp;

Description

Reconstruit le buffer des records affichés dans une MPAGE. Cette fonction doit être utilisée après création, modification ou destruction de records en cours d'utilisation d'une MPAGE.

Par exemple, si une touche fonction demande la construction d'un record (en C), l'éditeur de MPAGE ne peut en être informé. Cette fonction force la reconstruction de la fenêtre de la MPAGE.

Cette fonction doit être utilisée avec précaution.

3.9.1.1 File s_mpis.c
MP_cmp_to_buf(mp, rec_nb)
MP_down(mp)
MP_down_window(mp, nl)
MP_end(mp)
MP_home(mp)
MP_isam_to_buf(mp)
MP_pg_down(mp)
MP_pg_up(mp)
MP_rebuild_buf(mp)
MP_retrieve_rec(mp)
MP_set_cond(mp, cond)
MP_set_index(mp, cmp_nb)
MP_set_isam(mp, is1, is2)
MP_up(mp)
MP_up_window(mp, nl)
3.9.1.2 MP_cmp_to_buf (file s_mpis.c:493)

Syntaxe

MP_cmp_to_buf(mp, rec_nb)
MPAGE *mp;
int rec_nb;

Description

Compare the isam record to the record rec_nb in buf Return -1 if different, 0 else mp : IO : MPAGE * rec_nb : IN : nb of record in buffer to be compared

3.9.1.3 MP_down (file s_mpis.c:236)

Syntaxe

MP_down(mp)
MPAGE *mp;

Description

Move one record down. mp : IO : MPAGE *

3.9.1.4 MP_down_window (file s_mpis.c:421)

Syntaxe

MP_down_window(mp, nl)
MPAGE *mp;
int nl;

Description

Scroll n lines in buffer (and redisplay). Read the nl next records (if necessary) and store in buffer. mp : IO : MPAGE * nl : IN : nb of lines to scroll

3.9.1.5 MP_end (file s_mpis.c:334)

Syntaxe

MP_end(mp)
MPAGE *mp;

Description

Move to last rec of the screen mp : IO : MPAGE *

3.9.1.6 MP_home (file s_mpis.c:310)

Syntaxe

MP_home(mp)
MPAGE *mp;

Description

Move to first rec mp : IO : MPAGE *

3.9.1.7 MP_isam_to_buf (file s_mpis.c:531)

Syntaxe

MP_isam_to_buf(mp)
MPAGE *mp;

Description

Copy the isam record in buffer and lpgs at the current position mp : IO : MPAGE *

3.9.1.8 MP_pg_down (file s_mpis.c:289)

Syntaxe

MP_pg_down(mp)
MPAGE *mp;

Description

Move one page down. mp : IO : MPAGE *

3.9.1.9 MP_pg_up (file s_mpis.c:272)

Syntaxe

MP_pg_up(mp)
MPAGE *mp;

Description

Move one page up. mp : IO : MPAGE *

3.9.1.10 MP_retrieve_rec (file s_mpis.c:560)

Syntaxe

MP_retrieve_rec(mp)
MPAGE *mp;

Description

Retrieve old rec before saving modified page mp : IO : MPAGE *

3.9.1.11 MP_up (file s_mpis.c:211)

Syntaxe

MP_up(mp)
MPAGE *mp;

Description

Move one record up. mp : IO : MPAGE *

3.9.1.12 MP_up_window (file s_mpis.c:359)

Syntaxe

MP_up_window(mp, nl)
MPAGE *mp;
int nl;

Description

Scroll n lines in buffer (and redisplay). A current record will be defined if needed Read the nl previous records (if necessary) and store in buffer. mp : IO : MPAGE * nl : IN : nb of lines to scroll


[X-ON] [SCR4/AL1]

Copyright © 1998-2001 Jean-Marc and Bernard PAUL - Envoyez vos remarques ou commentaires à bp@xon.be