以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]窗口表控件中某列的原始值及新值如何写 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=61451) |
-- 作者:cqlwsam -- 发布时间:2014/12/12 15:37:00 -- [求助]窗口表控件中某列的原始值及新值如何写 我设计的窗口中添加了一个表,需要获取某列的值的原始值和新值,不知道如何写代码?谢谢! 我的代码是: With Tables("辅助资料基本表") Dim txt As String = .Current("目录名").value Dim txt1 As String =.current("目录名").OriginalValue If txt IsNot Nothing Then Dim pth As String = ProjectPath & "Attachments\\" & txt If .Current IsNot Nothing And .Current.DataRow.RowState = DataRowState.added Then \'如果当前行未曾修改 If FileSys.DirectoryExists(pth) Then 。。。。。 运行后提示:不知道错在哪儿? Public member \'value\' on type \'String\' not found.
|
-- 作者:有点甜 -- 发布时间:2014/12/12 15:38:00 --
[此贴子已经被作者于2014-12-12 15:37:55编辑过]
|
-- 作者:有点甜 -- 发布时间:2014/12/12 15:40:00 -- Dim txt As String = .Current("目录名") Dim txt1 As String = .current.DataRow.OriginalValue("目录名") |
-- 作者:cqlwsam -- 发布时间:2014/12/12 15:43:00 -- 谢谢!对了! |