ok im going to rewrite that part and see what i can do..
i tryed writting it this way:
procedure TForm1.OpenBtnClick(Sender: TObject);
var
Doc:TXMLDocument;
ForNode,NoteNode,TopicNode:TDOMNode;
begin
IF(OpenD.Execute)Then
begin
Form1.NoteBox.Clear;
Form1.TopicEdit.Clear;
Form1.ForEdit.Clear;
ReadXMLFile(Doc,SaveD.FileName);
TopicNode := Doc.DocumentElement.FindNode('Topic');
Form1.TopicEdit := TopicNode.FirstChild.NodeValue;
ForNode := Doc.DocumentElement.FindNode('For');
Form1.ForEdit := ForNode.FirstChild.NodeValue;
NoteNode := Doc.DocumentElement.FindNode('NOTE');
Form1.NoteBox.Append(NoteNode.FirstChild.NodeValue);
end;
end;
it says got widestring expected TEdit. in compile
Just fixed the problem now testing