Dim Val As String
If InputValue(Val,"输入临时表名!!","请输入:") Then
If Val >"" Then '输入:“表A” 表A已存在
Functions.Execute("tblgetName",Val) '函数发现同名,再输入:表B 传递.结果Val的值是:“表B”
msgbox(Val &"1") '这里最后的结果,还是第一次输入的“表A”。。
Dim dtb As New DataTableBuilder(Val) '生成临时表
dtb.AddDef("No",Gettype(Integer))
dtb.AddDef("Name",Gettype(String))
dtb.AddDef("Name1", Gettype(String))
dtb.AddDef("Control", Gettype(Boolean))
dtb.Build()
end if
end if
'---发现问题了,值不传递。
Dim Val As String = Args(0)
If DataTables.Contains(Val) Then
msgbox("已经存在相同表名!!!!!")
If InputValue(Val, "请输入名称", "请输入名称:") Then ‘输入:“表B”
Functions.Execute("tblgetName",Val)
Return Nothing
End If
End If
msgbox(Val) ‘传递出来的值还是"表B"