From 4066cecd67a947b87c6cdf2b6107b764ac82eb01 Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 2 Nov 2018 22:18:31 +0000 Subject: [PATCH] demo: fixed compile demoload --- demo/fcldb/demoload.lpr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/fcldb/demoload.lpr b/demo/fcldb/demoload.lpr index ed8681b..c487d24 100644 --- a/demo/fcldb/demoload.lpr +++ b/demo/fcldb/demoload.lpr @@ -151,10 +151,12 @@ begin document.body.appendChild(panel); Panel.appendChild(PanelContent); PanelContent.appendChild(Button); - DS:=TRestDataset.Create(Nil); + Conn:=TRestConnection.Create(nil); Conn.BaseURL:='countries.json'; Conn.OnGetURL:=@DoGetURL; + + DS:=TRestDataset.Create(Nil); DS.Connection:=Conn; DS.OnLoadFail:=@DoLoadFail; DS.AfterLoad:=@DoAfterLoad;