以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助控件中Validate  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=79436)

--  作者:blsu33
--  发布时间:2015/12/31 14:01:00
--  [求助控件中Validate
老师,
判断重复怎么写?


Dim i As Integer=Tables("AS004账套信息").Compute(sum("账套ID"),"账套ID=\'"& e.Sender.Value &"\' AndAlso e.Sender._Identify<> DataTables(e.Sender.BindingField.Split(",")(0))._Identify)")
If i>1 Then
    MessageBox.Shows("号码重复")
End If

--  作者:大红袍
--  发布时间:2015/12/31 14:26:00
--  
Dim i As Integer=Tables("AS004账套信息").Compute("sum(账套ID)","账套ID=\'"& e.Sender.Value &"\' And _Identify <> " & Tables(e.Sender.BindingField.Split(",")(0)).current("_Identify"))