在PB中如何实现数据模糊查询

豆豆网   技术应用频道   2006年08月05日    社区交流

本文详细介绍在PB中如何实现数据模糊查询

  9. d_column_set的设计完成界面如下所示:

  10. 其sql为:

  11. dw_where的设计完成界面如下:

  12. 其sql为:

  13. 属性和代码如下:

  1. wroot_dw_query属性:

  X = 9 Y = 1132 Width = 2912 Height = 712
Visible = true Enabled = true TitleBar = true Title = "定位查询"
ControlMenu = true Border = true WindowType = response! WindowState = normal!
BackColor = 79741120

  2. 窗口实例变量:

  Boolean ib_changed
Long MaxEditRow = 1
String sWhere, oldsql, orisql, is_title, is_section = 'WhereClause'
DataWindow dw_result,dw_detail
pfc_n_cst_string inv_string
string sSyntax

  注释:a.pfc_n_cst_string 为PFC用户对象。

  3. 窗口事件代码:

  3.1 close 事件:

  功能:将用户本次所输入的查询条件记录到文件sIniFile的WhereClause1...n小节中去以备下次启动时置初始查询条件。

  3.2 open 事件:

  功能:设置初始值,具体请看代码中的注释。

作者:张爱生    责编:豆豆技术应用

正在加载评论...