以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  短信发送  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=56510)

--  作者:jianjingmaoyi
--  发布时间:2014/9/7 13:19:00
--  短信发送
If FoxSMS.Ready = False Then
    Return
End If

Dim dt As DataTable = DataTables("待发送")
For Each dr As DataRow In dt.DataRows
    If FoxSMS.SendMsg(dr("移动电话"),dr("短信回访内容")) = 0 Then
        dr("已发送") = True
    End If
Next
dt.Save()

dt.LoadFilter ="已发送 = 0 Or 已发送 = Null And 注册单位=\'" & _UserCompany & "\'And 归属人=\'" & _UserID & "\'"
dt.Load

If dt.DataRows.Count = 0 Then
    FoxSMS.CloseCom()
    MyTimers("计划1").Enabled = False
End If

我做了个计划管理 这样写 行不 系统好像一直卡死

--  作者:有点甜
--  发布时间:2014/9/7 14:10:00
--  

 发送,有同步和异步两种,你要选择异步

 

FoxSms.SyncWorkMode = False \'设置为异步工作模式

 

 http://www.foxtable.com/help/topics/2423.htm