mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 05:49:23 +02:00
* some fcl examples compile again after changes
git-svn-id: trunk@1594 -
This commit is contained in:
parent
5520442fc4
commit
efa68a1275
@ -1,6 +1,6 @@
|
|||||||
program RPCCli;
|
program RPCCli;
|
||||||
|
|
||||||
uses SysUtils, Classes, fpAsync, XMLRPC;
|
uses SysUtils, Classes, fpAsync, xmlrpc;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -13,7 +13,8 @@ begin
|
|||||||
|
|
||||||
WriteLn('Writing a sample XML configuration to "testcfg.xml"...');
|
WriteLn('Writing a sample XML configuration to "testcfg.xml"...');
|
||||||
|
|
||||||
cfg := TXMLConfig.Create('testcfg.xml');
|
cfg := TXMLConfig.Create(nil);
|
||||||
|
cfg.Filename := 'testcfg.xml';
|
||||||
cfg.SetValue('cfgtest/MainWindow/Constraints/Width', 600);
|
cfg.SetValue('cfgtest/MainWindow/Constraints/Width', 600);
|
||||||
cfg.SetValue('cfgtest/MainWindow/Constraints/Height', 400);
|
cfg.SetValue('cfgtest/MainWindow/Constraints/Height', 400);
|
||||||
cfg.SetValue('cfgtest/MainWindow/Caption', 'TXMLConfig Test');
|
cfg.SetValue('cfgtest/MainWindow/Caption', 'TXMLConfig Test');
|
||||||
@ -23,7 +24,8 @@ begin
|
|||||||
|
|
||||||
WriteLn('Ok; now I''ll try to read back all values...');
|
WriteLn('Ok; now I''ll try to read back all values...');
|
||||||
|
|
||||||
cfg := TXMLConfig.Create('testcfg.xml');
|
cfg := TXMLConfig.Create(nil);
|
||||||
|
cfg.Filename := 'testcfg.xml';
|
||||||
|
|
||||||
i := cfg.GetValue('cfgtest/MainWindow/Constraints/Width', 0);
|
i := cfg.GetValue('cfgtest/MainWindow/Constraints/Width', 0);
|
||||||
if i <> 600 then
|
if i <> 600 then
|
||||||
|
Loading…
Reference in New Issue
Block a user