Hi,
I am having a problem with the SelStart property when setting the focus of a field. Here is my code:
WITH thisform.pageframe1
.page1.SetAll ("enabled",.t.,"textbox")
.page1.SetAll ("enabled",.t.,"combobox")
.page1.SetAll ("enabled",.t.,"checkbox")
.page2.SetAll ("enabled",.t.,"textbox")
.page2.SetAll ("enabled",.t.,"combobox")
.page2.command1.Enabled = .t.
.page2.command2.Enabled = .t.
.page3.SetAll ("enabled",.t.,"editbox")
.page4.SetAll ("enabled",.t.,"textbox")
.page4.SetAll ("enabled",.t.,"combobox")
.page1.txtclientno.selstart = 3
.page1.txtclientno.setfocus
ENDWITH
I also am setting the SelStart value in the text box's SetFocus and GotFocus properties. When I tab out of the text box then tab back into it, it works fine.
Thanks for any response,
Michael Vassallo
Micro League Software, Inc.
Williamsport, PA
mikev@microleaguesoftware.com