Click here to Skip to main content
11,929,650 members (58,139 online)
Rate this:
Please Sign up or sign in to vote.
See more: Delphi


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
if MessageDlgErrorMessage, mtError, [mbRetry, mbOk], 0, mbOk)=mrRetry then
goto RETRY_HM_Connection;
Posted 1-May-13 8:11am
Edited 1-May-13 8:29am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 1 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100