General information
Category:
Forms & Form designer
Adding controls to PageFrame:
For example :
Add text box to PageFrame1.Page1
ThisForm.pageFrame1.Page1.AddObject("MyTextBox1","TextBox")
ThisForm.pageFrame1.Page1.MyTextBox1.Visible=.T.
Clearing one page is even more simple, and procedure can be used no mather which controls you add to page:
FOR lnn = 1 To ThisForm.PageFrame1.Page1.ControlCount
lcControlName = ThisForm.PageFrame1.Page1.Controls(lnn).Name
ThisForm.PageFrame1.Page1.RemoveObject(lcControlName)
ENDFOR
ThisForm.PageFrame1.Page1.Refresh()
But the real problem is how to add validation rules (code) to programatically added controls if You must validate user input. One possibile solution is to write Visual FoxPro interpreter under Visual FoxPro !
I think that the version 6.0 have some interpreter in sample code, I'm not 100% shure.
Sory for bad, bad English !
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only