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

SCR/AL1 - TOME IV. Les librairies internes

2. La librairie scr4o

2.10 Fonctions de lecture et d'assignation de valeurs

2.10.43 PG_aget_rec_txt (file s_pgfn.c:419)

Syntax

char *PG_aget_rec_txt(pg, fld_nb)
PAGE *pg;
int fld_nb;

Description

Alloue un string correspondant à la valeur formatée d'un champ. Cette fonction retourne un pointeur vers le champ alloué.

Exemple

    PAGE pg {
...
FIELD string NAME ccp FORMAT "000-0000000-00"
...
}

PrintCcp()
{
char *ptr;

ptr = PG_aget_rec_txt(pg, n);
printf("1: CCP : %s\n", ptr);
SCR_free(ptr);
printf("2: CCP : %s\n", pg_CCP);
}

Résultat de PrintCcp() :

1: CCP : 123-1234567-12
2: CCP : 123123456712

Valeur retournée

Voir également

File s_pgfn.c

char *PG_aget_rec_txt(pg, fld_nb)
PG_find_abkey(pg)
PG_set_all_io(PAGE *pg, int io)
double SCR_get_field_double(pg, fld_nb)
long SCR_get_field_long(pg, fld_nb)
SCR_get_field_short(pg, fld_nb)
char *SCR_get_field_text(pg, fld_nb, text)
SCR_set_field_double(pg, fld_nb, val)
SCR_set_field_long(pg, fld_nb, val)
SCR_set_field_short(pg, fld_nb, val)
SCR_set_field_text(pg, fld_nb, text)

PG_find_abkey (file s_pgfn.c:755)

Syntax

PG_find_abkey(pg)       /* BP_M 22-02-2001 12:00 */
PAGE *pg;

PG_set_all_io (file s_pgfn.c:786)

Syntax

PG_set_all_io(PAGE *pg, int io)

Description

Set l'io de tous les champs d'une page IN : pg : Pointeur d'une page io : io à attribuer à tous les champs

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be