Dim s As String
Dim tb As Table = Tables("物料清单C")
s = tb.Current("物料")
Do While tb.Current.Parent.Index > -1
MessageBox.Show(tb.Current.Parent.Index)
tb.Position = tb.Current.Parent.Index
s = tb.Current("物料") & "\" & s
Loop
MessageBox.Show(s)
此主题相关图片如下:微信截图_20241122205447.png
将Do While tb.Current.Parent.Index > -1
改成:Do While tb.Current.Parent isnot nothing
不执行循环
[此贴子已经被作者于2024/11/22 20:58:13编辑过]