Statistics: Posted by woodslanding — 07 Dec 2024, 20:51
CODE:
//// returns the data associated with a tag,//// and removes the line containing the tag from the listfunction CutLineForTag(TAG: string; list: tStringlist): string;var line: string;var i: integer;begin for i := 0 to (list.count - 1) do begin //debug('checking line:' + intToStr(i) + ': ' + list.getStrings(i)); line := list.getStrings(i); if stringsMatch(TAG, getTagForLine(line)) then begin result := getDataForLine(line); list.delete(i); debug('stripped ' + tag + ', value: ' + getDataForLine(line)); end; end;end;Statistics: Posted by woodslanding — 02 Dec 2024, 16:59
Statistics: Posted by woodslanding — 07 Dec 2024, 20:51
CODE:
//// returns the data associated with a tag,//// and removes the line containing the tag from the listfunction CutLineForTag(TAG: string; list: tStringlist): string;var line: string;var i: integer;begin for i := 0 to (list.count - 1) do begin //debug('checking line:' + intToStr(i) + ': ' + list.getStrings(i)); line := list.getStrings(i); if stringsMatch(TAG, getTagForLine(line)) then begin result := getDataForLine(line); list.delete(i); debug('stripped ' + tag + ', value: ' + getDataForLine(line)); end; end;end;Statistics: Posted by woodslanding — 02 Dec 2024, 16:59