老师,发现一个问题,定位到全局变量的定义的临时表,为何定位行时,找到了却显示第一行呢?
Dim dt As DataTable=Functions.Execute("tablloading","usformset")
MessageBox.Show("id='"& sendername &"' And parentfrmid='"& frm &"' or parentfrmid like '"& frm &",%' or parentfrmid like '%,"& frm &",%' or parentfrmid like '%,"& frm &"'")
Dim dr As DataRow=dt.find("id='"& sendername &"' And parentfrmid='"& frm &"' or parentfrmid like '"& frm &",%' or parentfrmid like '%,"& frm &",%' or parentfrmid like '%,"& frm &"'")
If dr IsNot Nothing Then
MessageBox.Show(dr("id") &"_ " sendername)
显示的结果为
CA0101_FA0101
表结构如下,