Also without the double quotes :
// To remove Key
procedure TMainForm.UniButton3Click(Sender: TObject);
begin
UniButton3.JSInterface.JSCallGlobal('localStorage.removeItem', ['lastname']);
end;
This is correct, without the double quotes :
// To Set the Key "lastname"
procedure TMainForm.UniButton1Click(Sender: TObject);
begin
UniButton1.JSInterface.JSCallGlobal('setItem', ['lastname', 'Smith'] );
end;
Hi,
Sorry for the late reply
I saw your testcase and I have tested
Can you please open a ticket in support portal?
http://unigui.com/support/support-portal
Thank you for your interest in UniGUI!
You can also see the demo examples:
\FMSoft\Framework\uniGUI\Demos
Online demo:
http://prime.fmsoft.net/demo/desktop/mdemo65.dll
procedure TMainForm.UniStringGrid1Click(Sender: TObject);
var
_Value : String;
grid: TUniStringGrid;
begin
grid := (Sender as TUniStringGrid);
with grid do
if (Row >= 0) then
begin
_Value := Cells[Col, Row];
if _Value = '1' then
_Value := '2'
else if _Value = '2' then
_Value := '1'
else
_Value := '1';
Cells[Col, Row] := _Value;
end;
end;