For Each ctrl As Control In Me.Controls
If TypeOf ctrl Is txtBase Then
Dim ctrl1 As txtBase = ctrl
ctrl1.ioEnable(value)
End If
If TypeOf ctrl Is pnlBase Then
Dim ctrl1 As pnlBase = ctrl
ctrl1.ioEnable(value)
End If
If TypeOf ctrl Is btnBase Then
Dim ctrl1 As btnBase = ctrl
ctrl1.ioEnable(value)
End If
Next
In VFP this looked like this where "pemstatus(,,5)" returned true if the control "had" a method "IOEnable".
for each o in this.Controls o= ctr if !pemstatus(o,'IOEnable',5) loop endif o.IOEnable() endif endfor

New Topic/Question
Reply




MultiQuote




|