Setfocus Method
From Lianjapedia
Gives focus to the object.
ob.setfocus
Example
// // Lianja custom section for page "page1" section "section1" // namespace custom1 public textbox1, textbox2, textbox3 define class page1_section1 as section enddefine define class focus_button as CommandButton proc click textbox1.setfocus endproc enddefine proc page1_section1 page1_section1 = createobject("page1_section1") page1_section1.addobject("focusbutton","focus_button") focusbutton.caption = "Focus on Textbox 1" page1_section1.addobject("textbox1", "Textbox") textbox1.text = "Textbox 1" page1_section1.addobject("textbox2", "Textbox") textbox2.text = "Textbox 2" page1_section1.addobject("textbox3", "Textbox") textbox3.text = "Textbox 3" return page1_section1