2. April 2009 07:29
2. April 2009 08:34
IF gtFileName = '' THEN Init;
gfFile.TEXTMODE(FALSE);
gfFile.WRITEMODE(TRUE);
gfFile.OPEN(gtFileName);
gfFile.SEEK(gfFile.LEN);
IF pbPrintTableHeader THEN BEGIN
lwriteTableHeader(prrRecordRef);
END;
//* Table Body
FOR viCountFields := 1 TO prrRecordRef.FIELDCOUNT DO BEGIN
vfrFieldRef := prrRecordRef.FIELDINDEX(viCountFields);
viMaxColWidth := giMinColWidth;
IF STRLEN(vfrFieldRef.NAME) > viMaxColWidth THEN BEGIN
viMaxColWidth := STRLEN(vfrFieldRef.NAME);
END;
FOR i := 1 TO viMaxColWidth DO BEGIN
IF i <= STRLEN(FORMAT(vfrFieldRef.VALUE)) THEN BEGIN
gfFile.WRITE(FORMAT(vfrFieldRef.VALUE)[i]);
END ELSE BEGIN
gfFile.WRITE(gtSpace[1]);
END;
END;
IF viCountFields < prrRecordRef.FIELDCOUNT THEN BEGIN
FOR i := 1 TO STRLEN(gtFieldSeparator) DO
gfFile.WRITE(gtFieldSeparator[i]);
END ELSE BEGIN
FOR i := 1 TO STRLEN(gtLineSeparator) DO
gfFile.WRITE(gtLineSeparator[i]);
END;
END;
gfFile.CLOSE;
2. April 2009 09:01
2. April 2009 09:06
2. April 2009 09:18
FAFL hat geschrieben:Kann schon sein, spielt aber keine große Rolle, es geht um die Behandlung von RecordRefs und die steht in einer Ausprägung da drin.
2. April 2009 09:41
QuellRef.GETTABLE(Rec);
deineCU.DeineFunktion(quellref);
2. April 2009 17:50