mastudio 从晚上获取表格

OBJECT wxCOMMON aCommon
{
	aCommon.Background[]= , background_menu.bmp
}

OBJECT wxDATASOURCE aSource
{
	private:
	aSource.Database= HTTP
	aSource.Server= "http://www.masuite.com/sample/sample.htm"
	aSource.Port= 80
	aSource.Method= "Get"
}

OBJECT wxQUERY aQuery
{
	aQuery.wxDATASOURCE= aSource
	aQuery.Url= "http://www.masuite.com/sample/get_grid.asp"
	aQuery.Begin= "<table.+?>"
	aQuery.End= "</table>"
	
	aQuery.Lex= "<tr.+?>.+?<td.+?>(.+?)</td>.+?<td.+?>(.+?)</td>.+?<td.+?>(.+?)</td>.+?</tr>"
	
	aQuery.Split= 9
	aQuery.Page= 1
}

OBJECT wxGRID aGrid
{
	aGrid.wxCAPTION= aCaption
	aGrid.wxCOLUMN= aColumn
	aGrid.wxSECTION= aSection
	
	aGrid.wxQUERY= aQuery
	aGrid.wxCURSOR= aCursor
	
	aGrid.Banna[]= 0, 0xFF0000, 0xEEAAEE
	aGrid.Pen[]= 1, 0x000000
	aGrid.Rect[]= 5%,20%,95%,100%
	
	aGrid.Prompt[]= 80%, 75%, 10%, 15%, 0xC0C0C0
}

OBJECT wxCAPTION aCaption
{
	aCaption.Titlel= "演示获取网页表格内容"
	aCaption.Font[]= 18,0xFFFFFF
	aCaption.Align= left
	aCaption.Height= 9%
	aCaption.Background= 0xff6068
}

OBJECT wxCOLUMN aColumn
{
	aColumn.Count= 3
	aColumn.Height= 0
	
	aColumn.Field[]= "名称", "数量", "金额"
	aColumn.Width[]= 60%, 15%, 15%
	aColumn.Font[]= 14, 0x2042ff
	aColumn.Align[]= center, center, center, center
	//aColumn.Color[]= 0xFF0000, 0x00FF00
	aColumn.Background= 0x3ce7e9
}

OBJECT wxSECTION aSection
{
	REM aSection.Background= 0xffBBCC
	aSection.Font[]= 14, 0x000000
	aSection.Align[]= left, left, right, right, right
	//aSection.Dyestuff= 3
}

OBJECT wxCURSOR aCursor
{
	aCursor.Kind= 1
	aCursor.Pen[]= 10, 0xFFDDEE
	aCursor.Color= 0xEEFFDD
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值