Posted: Thu Sep 01, 2022 5:06 am Post subject: how to set Comments.Memo1.Text?
Code:
function CETrainer_ABOUTBUTTONClick(sender)
--Comments.Memo1.Text='123' ????
local mainForm = getMainForm()
local CB = mainForm.findComponentByName("CommentButton")
CB.doClick()
end
-----
I have found a way.
Code:
local CommentForm
for i = 0, getFormCount() - 1 do
local frm = getForm(i)
if(frm.ClassName=='TComments')then
CommentForm =frm
local Memo1 = CommentForm.findComponentByName("Memo1")
Memo1.Lines.Text= "balbalbaaaal"
CommentForm.Visible = true
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