7. August 2008 13:55
XMLNodeRecord := XMLDocument.createElement('RECORD');
FOR i := 1 TO lrrRecordRef.FIELDCOUNT DO BEGIN
lfrFieldRef := lrrRecordRef.FIELDINDEX(i);
XMLNodeField := XMLDocument.createElement('FIELD');
AddAttribute(XMLNodeField, 'ID', FORMAT(lfrFieldRef.NUMBER));
XMLNodeField.text := FORMAT(lfrFieldRef);
XMLNodeRecord.appendChild(XMLNodeField);
END;
XMLNodeTable.appendChild(XMLNodeRecord);
7. August 2008 14:05
FAFL hat geschrieben:FORMAT(FieldRef) bei den Datentypen Code, Date, DateFormula und sicher noch anderen leer.
7. August 2008 14:06
7. August 2008 14:12
7. August 2008 14:29
lrrRecordRef.OPEN(piTableNo);
IF lrrRecordRef.FIND('-') THEN;
liRecordSum := lrrRecordRef.COUNT;
liRecordCount := 0;
gdlgStateBar.UPDATE(2,0);
REPEAT
liRecordCount += 1;
giRecordCount += 1;
IF (liRecordCount MOD 10) = 0 THEN BEGIN
gdlgStateBar.UPDATE(2, ROUND((liRecordCount/liRecordSum*10000),1));
gdlgStateBar.UPDATE(3, ROUND((giRecordCount/giRecordSum*10000),1));
END;
XMLNodeRecord := XMLDocument.createElement('RECORD');
FOR i := 1 TO lrrRecordRef.FIELDCOUNT DO BEGIN
lfrFieldRef := lrrRecordRef.FIELDINDEX(i);
XMLNodeField := XMLDocument.createElement('FIELD');
AddAttribute(XMLNodeField, 'ID', FORMAT(lfrFieldRef.NUMBER));
XMLNodeField.text := FORMAT(lfrFieldRef);
XMLNodeRecord.appendChild(XMLNodeField);
END;
XMLNodeTable.appendChild(XMLNodeRecord);
UNTIL lrrRecordRef.NEXT = 0;