分享_动态显示表头,感谢广东-awfixtdm*_使用经验
        
 
| 作者 | 
 |  
1934184799  [个人空间] QQ名  河内-服装
 
      注册  2015-06-23 发贴数  472 精华贴  1 原创贴  0 来自   状态  正常
  级别  会员 | 
  |  
 |  
int func_def_lmt()  {  dt_define('m_table',"select name,name from sysobjects where xtype='U'");  def_lmt_dict("table","查看表","m_table");    return 1;  };    int func_def_field()  {  string sql;    int a, b;        db_select_area(0);    sql = "select * from "+lmt_val("table")+"";    db_run(sql);    a = db_field_count();    for (b = 0; b < a; b++)    {      db_set_field_info(b,db_field_name(b), db_field_name(b), 80);    }    return 1;  };    int func_query()  {  string sql;  sql="select * from "+lmt_val("table")+""   db_run(sql);    return 1;  };  |  
  |  
 |  
         
 
 
  |  
 
 |  
1934184799  [个人空间] QQ名  河内-服装
 
      注册  2015-06-23 发贴数  472 精华贴  1 原创贴  0 来自   状态  正常
  级别  会员 | 
  |  
 |  
int func_def_lmt()  {    dt_define('m_table', "select name,name from sysobjects where xtype='U'");    def_lmt_dict("table", "查看表", "m_table");  def_lmt_str("hire_date","查询字段");  def_lmt_str("d1","入职日期1");  def_lmt_str("d2","入职日期2");      return 1;  };    int func_def_field()  {    string sql;    int a, b;        db_select_area(0)    sql = "select * from "+lmt_val("ddate")+" where "+lmt_val("hire_date")+">='"+lmt_val("d1")+"' and  "+lmt_val("hire_date")+"<='"+lmt_val("d2")+"'";    db_run(sql);    a = db_field_count();        for (b = 0; b < a; b++)    {      db_set_field_info(b,db_field_name(b), db_field_name(b), 80);      }    return 1;  };    int func_def_imp()  {    return 1;  };    int func_init()  {    return 1;  };    int func_query()  {    return 1;  };  |  
  |  
 |  
         
 
 
  |  
 
 |  
大海边  [个人空间]
 
   注册  2015-03-21 发贴数  31 精华数  0 原创贴  0 来自   状态  正常
  级别  会员 | 
  |  
 |  
有些 看不懂,希望楼主能发个截图或文字说明,以便学习,非常感谢!  |  
  |  
 |  
         
 
 
  |  
 
 |  
afoo  [个人空间] QQ名  常德-ZEN
 
    注册  2010-04-08 发贴数  207 精华贴  6 原创贴  6 来自  常德-ZEN 状态  正常
  级别  会员 | 
  |  
 |  
小服总是发这种无头无脑的东西,好多人不知道是什么。  |  
  |  
 |  
         
 
 
 
  
 官方认证第三方服务团队  蒋逸凡(常德-ZEN) QQ:50636277 微信FrankBZE
服务介绍: http://www.onlyit.cn/user_show_topic?user_id=13498&topic_id=79894&topic_page_id=1 
  |  
 
 |  
 
 |  
 
 
 |