General information
Title:
Help Translating from VFP to VB
I want to loop through all the textboxes in a container and clear the control.
*---VFP code
lParameter toContainer
*
* loop through control members in toContainer
*
Local loControl
For Each loControl In toContainer.Controls
*
* Process only the textbox type.
*
If Upper(loControl.BaseClass) <> "TEXTBOX"
Loop
Endif
*
* Clear the control.
*
If loControl.Visible = .T.
loControl.Value = Space(0)
loControl.Refresh()
Endif
Endfor
Next
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