henrikatwork
asked on
What kind of output does TXMLDocument.XML.Text deliver? Mismatch problem with parameter.value ... :(
Hi!
I'm using:
paramADOXML : Parameter;
paramXMLString : WideString;
The following two lines of code generates the error "The application uses a value of the wrong type"
paramXMLString := myXML.XML.Text;
paramADOXML.Value := paramXMLString;
but if I exchange it for the following, it works perfectly!!!
paramADOXML.Value := '<DAL typ="logMessage"><Message Sender="Henrik" Receiver="Collins" CorrelationID="0" TransactionID="0" Message="hello world"/></DAL>';
How come? Why doesn't he accept the paramters in the first place?
The parameter is supposed to be of the text type, I'm using a SQL Server Database.
cheers,
henrik
I'm using:
paramADOXML : Parameter;
paramXMLString : WideString;
The following two lines of code generates the error "The application uses a value of the wrong type"
paramXMLString := myXML.XML.Text;
paramADOXML.Value := paramXMLString;
but if I exchange it for the following, it works perfectly!!!
paramADOXML.Value := '<DAL typ="logMessage"><Message Sender="Henrik" Receiver="Collins" CorrelationID="0" TransactionID="0" Message="hello world"/></DAL>';
How come? Why doesn't he accept the paramters in the first place?
The parameter is supposed to be of the text type, I'm using a SQL Server Database.
cheers,
henrik
ASKER
No, that doesn't work...
paramXMLString prints out correctly as you would expect?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
regards
classmate