![]() |
variabel HostName in einem String einzugeben
Hallo,
ist es möglich eine variabel HostName in einem String einzugeben zb.
Code:
Nun sieht in meine Prozedure bis jetzt so aus:
'you must disconnect' + HostName + 'Do you want to disconnect now?'
Code:
könnt ihr mir vieleicht zeigen wie man sowas macht?
procedure TMainForm.Warning1;
begin if (Application.MessageBox( 'You must disconnect before opening another connection.' + #10 + #13 + 'Do you want to disconnect?', 'Access2All', MB_YESNO + MB_DEFBUTTON1 + MB_ICONEXCLAMATION) = ID_YES) then begin Disconnect1Click(self); Connect1click(self); end; end; danke schonmal für eure antworten, Peter Kiers |
Re: variabel HostName in einem String einzugeben
Hallo Peter,
string concatenation machst du doch schon selbst:
Delphi-Quellcode:
Grüße vom marabu
begin
if (Application.MessageBox(PChar('You must disconnect from ' + HostName + ' before opening another connection.' + sLineBreak + 'Do you want to disconnect?'), // ... |
Re: variabel HostName in einem String einzugeben
Danke...
Peter Kiers |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:52 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz