用什么辦法可以得到寫了表達式的dwo的x ??

zhongasen 2009-08-05 02:54:25
dw1中的name列的x是設置為表達式的
我用什么辦法可以得到它?
...全文
64 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhongasen 2009-08-05
  • 打赏
  • 举报
回复
string ls_tmp
ls_tmp = dw_1.describe('name.x')
ls_tmp = right(ls_tmp, len(ls_tmp) - pos(ls_tmp,'~t'))
ls_tmp = left(ls_tmp, len(ls_tmp) - 1)
ls_tmp = dw_1.Describe("evaluate('" + ls_tmp + "', 1)") // 把1改成你要想的行
messagebox('',ls_tmp)
zhongasen 2009-08-05
  • 打赏
  • 举报
回复
正解
永生天地 2009-08-05
  • 打赏
  • 举报
回复
老牛
[Quote=引用 2 楼 liubocy 的回复:]
取出表达式后,用evaluate

C/C++ codestring ls_tmp
ls_tmp= dw_1.describe('name.x')
ls_tmp= right(ls_tmp, len(ls_tmp)- pos(ls_tmp,'~t'))
ls_tmp= left(ls_tmp, len(ls_tmp)-1)
ls_tmp= dw_1.Describe("evaluate('"+ ls_tmp+"', 1)")
messagebox('',ls_tmp)
[/Quote]
liubocy 2009-08-05
  • 打赏
  • 举报
回复
取出表达式后,用evaluate

string ls_tmp
ls_tmp = dw_1.describe('name.x')
ls_tmp = right(ls_tmp, len(ls_tmp) - pos(ls_tmp,'~t'))
ls_tmp = left(ls_tmp, len(ls_tmp) - 1)
ls_tmp = dw_1.Describe("evaluate('" + ls_tmp + "', 1)")
messagebox('',ls_tmp)
jimwoo 2009-08-05
  • 打赏
  • 举报
回复
要得到x的值还是表达式?

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧