I would like to clear the contents of each text box on a form using the 'For Each' command. what would the proper syntax be to accomplish this? Thanks in advance.
Try something like this...
For lnCnt = 1 To THISFORM.ControlCount
loObj = THISFORM.Controls[lnCnt]
IF loObj.BaseClass = "Textbox"
loObj.value = ""
loObj.refresh()
endif
Next
...it should be noted that if your form has other controls that contain textboxes such as pageframes you would need to dig down into those and find the textboxes as well...but you didn't specify that so I am just giving the short and sweet answer for right now Slighthaze = NULL
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.