I want to do something to all textboxes in a form by
the following code (e.g. add 1 to .text)
call mysub(myform)
Private Sub mysub(ByVal myContainer As Object)
Dim myControl As Control
For Each myControl In myContainer.Controls
If TypeOf myControl Is TextBox Then
'do something to mycontrol
ElseIf myControl.HasChildren Then
Call mysub(myControl)
End If
Next
End Sub
now the strange thing is all my numericalupdown controls
are also change
【 以下文字转载自 Programming 讨论区 】
发信人: meilefu (好好挣钱), 信区: Programming
标 题: An error when calling COM method in Javascript
发信站: BBS 未名空间站 (Tue Jan 30 11:26:18 2007)
I am trying to call a COM method in Javascript
It works fine is IE6, but not in IE 7 and mozilla..
Code is like this
In asp file, I loaded the ActiveX object
VIEWASTEXT>