Click here to Skip to main content
15,867,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<SPPROFILES>
<SCHEMAVERSION>1.0.0</SCHEMAVERSION>
<PROFILE>
<TRUSTEDCONNECTION>FALSE</TRUSTEDCONNECTION>
<USERNAME>abcd</USERNAME>
<PASSWORD>$AES$7k5NP+C8ESojQoEmmjN5ug==</PASSWORD>
<CONNECTTIMEOUT>10</CONNECTTIMEOUT>
<COMMANDTIMEOUT>86400</COMMANDTIMEOUT>

</PROFILE>
</SPPROFILES>


I want get the username from XML and display it in the form when it loads the error message.

This is part of the code
ErrorMessage = 'Could not connect to default database with username ''-------''.';

Instead of ''-----'', how do I display ''abcd'' over there.

In the code this is where am calling "ErrorMessage"

if not StartHost() then
begin
if MessageDlgErrorMessage, mtError, [mbRetry, mbOk], 0, mbOk)=mrRetry then
goto RETRY_HM_Connection;
StartQueues(true);
----
----
-----
Posted
Updated 1-May-13 7:29am
v2
Comments
CPallini 1-May-13 15:14pm    
And where is the code that parses the XML input for getting the USERNAME?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900