以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  MAC地址写入到外部表  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=147883)

--  作者:禾成
--  发布时间:2020/3/26 14:14:00
--  MAC地址写入到外部表
我想在系统打开时获取本机的MAC地址写入到外部表“zhuce”的“mac”行里,应该怎样写?下面是我写的,请指教
“zhuce”表是SQL Server表
 AfterOpenProject事情

Dim nics() As System.Net.NetworkInformation.NetworkInterface = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces
      
 Tables("zhuce").current.DataRow.lines("mac") = nics(0).GetPhysicalAddress.Tostring

--  作者:有点蓝
--  发布时间:2020/3/26 14:18:00
--  
Tables("zhuce").current("mac") = nics(0).GetPhysicalAddress.Tostring
--  作者:禾成
--  发布时间:2020/3/30 8:26:00
--  
谢谢蓝老师的指点,问题解决