PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV (versiones precedentes) → [5.5] HinfoGene
[5.5] HinfoGene
Iniciado por al, 13,ene. 2004 16:39 - 1 respuesta
Publicado el 13,enero 2004 - 16:39
G'day All
I have a problem with the help doco in relation to hadd, hinfogene and the value in h.numrec
The doco states
"If HAdd is called before or after HInfoGene, the record number returned by HAdd (in H.NumRec) is different from that returned by HInfoGene. (HAdd returns the number of the added record, whereas HInfoGene returns the number of the last record read.)"
In my experience the value of h.numrec after a hadd is 0, not the number of the added record. I have to issue hinfogene() to get the correct value for h.numrec
I use the h.numrec value mainly in reports to fill a memzone and run the reports from the memzone with a list of record numbers. So I am writing records into a temp file and recording its h.numrec as I go. Without the hinfogene after each hadd the h.numrec is 0
I don't think I am doing anything strange when I add a record using hadd so I am curious.
Regards
Al
Miembro registrado
1 mensaje
Publicado el 26,junio 2019 - 15:53