![]() | Products |
| Home » Technical Support » Elevate Web Builder Technical Support » Product Manuals » Elevate Web Builder 3 Manual » Using Local Storage » Loading Data from Local Storage |
uses WebCore, WebComps;
procedure TForm1.Form1Create(Sender: TObject);
begin
DisplayPrefs:=TStringList.Create;
end;
procedure TForm1.Form1Destroy(Sender: TObject);
begin
DisplayPrefs.Free;
DisplayPrefs:=nil;
end;
procedure TForm1.InitDisplayPrefs;
begin
with DisplayPrefs do
begin
Clear;
Values['ShowMainMenu']:='True';
Values['ShowToolBar']:='True';
end;
end;
procedure TForm1.SaveDisplayPrefs;
begin
LocalStorage.Set('DisplayPrefs',DisplayPrefs.Text);
end;
procedure TForm1.LoadDisplayPrefs;
begin
if LocalStorage.Exists('DisplayPrefs') then
DisplayPrefs.Text:=LocalStorage['DisplayPrefs']
else
InitDisplayPrefs;
end;This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

