Re: locate method problem ???
- From: "Graham Harris" <ng@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 23 May 2006 14:20:27 -0700
ray wrote:
Delphi 7OldDataset.Locate(params.Values['primarykey'],VarArrayFromStrings(mn),
trying to use ADO Dataset without connection reading prevously stored
XML file from disk The error that pos up is EOleException "Element
was not closed".
Please help me to solve this I just do not understand the reason.
Code Fragment:
Var
OldDataset:TADODataset;
mn: TStringList;
Begin
OLDDataset:=TADODataset.Create(nil);
mn:=TStringList.Create;
try
OldDataset.LoadFromFile(LocalFile);
mn.Delimiter:=';';
mn.DelimitedText:=Params.Values['primarykey']; //
('2006','2008','389k','400k') thats the values if
[]) then OldDataset.Delete; //** here where the error happens
{........more code here........} finally OLDDataset.free;
mn.free;
end
End
Each XML node must have a closing tag, the following XML snippet is
valid
----%<----
<Root>
<Node1 />
<Note2> value </Note2>
</Root>
----%<----
<Node1 /> is equivalent to <Node1></Node1>
this is not valid:
----%<----
<Root>
<Node1>
<Note2> value </Note2>
</Root>
----%<----
For more information see the W3C Schools XML Tutorial.
HTH
Graham Harris
--
.
- References:
- locate method problem ???
- From: ray
- locate method problem ???
- Prev by Date: locate method problem ???
- Next by Date: Re: connect to db in codes
- Previous by thread: locate method problem ???
- Index(es):
Relevant Pages
|