I did some searching through the forum and found some code for enabling/disabling textfields, but there seem to be some deprecated calls in it.
I want to loop through and clear out the text from my WebTextFields. Those WebTextFields are in a couple different WebRectangles I’m using as control groups (there are various controls in each, not just WebTextFields.
Here’s what I’ve got:
//HomePage is the page I'm working with //InfoContainer1 is a WebContainer I've imbedded in HomePage Var i As Integer Var c As myTextField //Custom WebTextField I've added some properties to for i = 0 to HomePage.InfoContainer1.LastControlIndex if HomePage.InfoContainer1.ControlAt(i) isa myTextField then c = StudentPageTextField(self.ControlAt(i)) c.Text="" end if Next
The good news is that it doesn’t crash anything . . . The bad news is that it also doesn’t seem to do anything. If I put in a message box with i it doesn’t give the right number of controls.
Suggestions? Better solutions? (I mean, any solution is a better solution LOL)