語法錯誤

fang5447 2017-02-12 03:35:14
ls_textcolor = this.Describe( "Column.Color" )
ls_textcolor =" if ( Column = date(1900-01-01) , 欄位背景色 , ls_textcolor )" // 這行如何改進才對
this.Modify( "Column.Color='" + ls_textcolor + "'" )

煩請 大大 解答 感謝您
...全文
267 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
fang5447 2017-02-14
  • 打赏
  • 举报
回复
感謝 2F 3F 回覆
猎奇567 2017-02-13
  • 打赏
  • 举报
回复
应该改为ls_textcolor ="0~if ( Column = date(1900-01-01) , 欄位背景色 , ls_textcolor )" PB中按下F1,搜索color,可以找到color Datawindow object property. 参考Examples.
fang5447 2017-02-13
  • 打赏
  • 举报
回复
ls_textcolor = "0 if (" + Column + " = date(1900-01-01) , " + this.Describe(Column + ".Background.Color") + " , " + this.Describe( Column + ".Color") + " )" 問題解決了
wag_enu 2017-02-13
  • 打赏
  • 举报
回复
string ls_modify ls_modify = '0~t if(......)' dw_eg.modify(ls_modify) 可以修改成任意复杂的表达式

740

社区成员

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

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