button.OnClick=function(sender)
local OpenDialog = createOpenDialog(myForm)
OpenDialog.execute()
-------------------------------------------------------
--print(OpenDialog.GetDialogResult) -- or maybe
--if (whatever is clicked on) then
--return ???
-------------------------------------------------------
--else
-- do stuff
memo.Lines.Insert(1,'Line 1')
memo.Lines.add('Last line')
--end
end
button1.OnClick=function(sender)
local OpenDialog = createOpenDialog(myForm)
--OpenDialog.execute()
-------------------------------------------------------
if OpenDialog.execute() then --if file name then (open-save-ok-true)
memo1.Lines.add(OpenDialog.FileName)
else -- (cancel-close-false)
memo1.Lines.add('Cancel')
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum