用短信猫收到的短信格式如下
|1%04%8618663903989%收到%11-08-12 15:38:58|2%04%8618663903973%没明白?%11-08-12 16:44:13|3%04%8618663903913%本年度您还没提过合理化建议,请登陆http://bes.baosteel.info/去提合理化建议,谢谢!%11-08-15 17:12:11
如何把它拆分成:
序号\手机号\短信内容\接受时间
------解决方案--------------------
以下代码为pb9的
1、建立数据窗口 d_dx
- C/C++ code
release 9;datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )header(height=76 color="536870912" )summary(height=0 color="536870912" )footer(height=0 color="536870912" )detail(height=84 color="536870912" height.autosize=yes)table(column=(type=number updatewhereclause=yes name=xh dbname="xh" ) column=(type=char(10) updatewhereclause=yes name=bm dbname="bm" ) column=(type=char(20) updatewhereclause=yes name=mobile dbname="mobile" ) column=(type=char(4000) updatewhereclause=yes name=content dbname="content" ) column=(type=datetime updatewhereclause=yes name=dt dbname="dt" ) )text(band=header alignment="2" text="序号" border="0" color="33554432" x="9" y="8" height="60" width="256" html.valueishtml="0" name=xh_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )text(band=header alignment="2" text="未知" border="0" color="33554432" x="274" y="8" height="60" width="320" html.valueishtml="0" name=bm_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )text(band=header alignment="2" text="手机号" border="0" color="33554432" x="603" y="8" height="60" width="640" html.valueishtml="0" name=mobile_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )text(band=header alignment="2" text="短信内容" border="0" color="33554432" x="1253" y="8" height="60" width="1147" html.valueishtml="0" name=content_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )text(band=header alignment="2" text="时间" border="0" color="33554432" x="2409" y="8" height="60" width="402" html.valueishtml="0" name=dt_t visible="1" font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )column(band=detail id=1 alignment="2" tabsequence=10 border="0" color="33554432" x="9" y="8" height="64" width="256" format="[general]" html.valueishtml="0" name=xh visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="33554432" x="274" y="8" height="64" width="320" format="[general]" html.valueishtml="0" name=bm visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="33554432" x="603" y="8" height="64" width="640" format="[general]" html.valueishtml="0" name=mobile visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )column(band=detail id=4 alignment="0" tabsequence=40 border="0" color="33554432" x="1253" y="8" height="64" width="1147" format="[general]" html.valueishtml="0" name=content visible="1" height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )column(band=detail id=5 alignment="0" tabsequence=50 border="0" color="33554432" x="2409" y="8" height="64" width="402" format="[shortdate] [time]" html.valueishtml="0" name=dt visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-9" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )htmltable(border="1" )htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )import.xml()export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )