递归:
定义函数getchild
Dim st = args(0)
Dim fi As String
For Each it As WinForm.StripItem In st.Items
If it.Name.StartsWith("项目") = False Then
fi &= "|" & it.Name
End If
fi &= "|" & Functions.Execute("getchild",it)
Next
Return fi
调用:
Dim fi As String
For Each st As WinForm.Strip In e.Form.Strips
fi &= "|" & Functions.Execute("getchild",st)
Next
InputValue(fi,"","")