<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>VB程序员博客</title>
	<atom:link href="http://www.fetik.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fetik.cn</link>
	<description>VB程序开发</description>
	<pubDate>Mon, 08 Feb 2010 23:10:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>[adodc][语句][使用]adodc 中的 SQL语句无法使用问题</title>
		<link>http://www.fetik.cn/2010/02/6795.html</link>
		<comments>http://www.fetik.cn/2010/02/6795.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 23:10:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[adodc]]></category>

		<category><![CDATA[使用]]></category>

		<category><![CDATA[语句]]></category>

		<guid isPermaLink="false">/wp/?p=6795</guid>
		<description><![CDATA[我用ADODC执行SQL语句出现语法错误 请高手解决  我先用模块做的   模块中如下代码  public cns as string  public cs as connection  Public Sub loadmdb()　　   &#160; &#160; cns = App.Path  &#160; &#160; If Right(cns, 1)  &#60;&#62; &#34;&#34; Then  &#160; &#160; &#160;  cns = cns + &#34;&#34;  &#160; &#160; End If  &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>我用ADODC执行SQL语句出现语法错误 请高手解决 <br /> 我先用模块做的  <br /> 模块中如下代码 <br /> public cns as string <br /> public cs as connection <br /> Public Sub loadmdb()　　  <br /> &nbsp; &nbsp; cns = App.Path <br /> &nbsp; &nbsp; If Right(cns, 1)  &lt;&gt; &quot;&quot; Then <br /> &nbsp; &nbsp; &nbsp;  cns = cns + &quot;&quot; <br /> &nbsp; &nbsp; End If <br /> &nbsp; &nbsp; cns = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=&quot; 小型商店管理系统.mdb&quot; &#39;此处是相对路径 保证没问题 <br /> End Sub </p>
<p> frm load事件中调用该连接字符串。代码如下： <br /> Private Sub Form_Load() <br /> &nbsp; &nbsp; Call loadmdb　　　　‘调用连接字符串过程 <br /> &nbsp; &nbsp; adodc1.ConnectionString = cns <br /> &nbsp; &nbsp; adodc1.CommandType = adCmdText <br /> &nbsp; &nbsp; adodc1.RecordSource = &quot;select * from 员工工资表&quot;&nbsp; &#39;此地也保证没问题 <br /> &nbsp; &nbsp; adodc1.Refresh <br /> End Sub </p>
<p> 按钮代码如下 <br /> cs.execute &quot;select * from 员工工资表 where id=&#39;&amp; text1.text &amp;&#39;&quot; </p>
<p> 有问题&nbsp; 就是按钮代码处说有错 编译不了 </p>
<p> 然后我又用别的办法做了  <br /> 直接在按钮处写了如下代码 还是有问题 </p>
<p> adodc1.recordsource=&quot;select * from 员工工资表 where id=&#39;&amp; text1.text &amp;&#39;&quot; <br /> adodc1.refresh </p>
<p> 说是该行的函数参数错误&nbsp;  </p>
<p> 帮我看下&nbsp; 谢谢了  <br /> </<br />对了 忘了一句 <br /> 在frm load中忘记了两条代码 </p>
<p> Set cs = New Connection <br /> cs.Open cns</<br />adodc1.recordsource=&quot;select * from 员工工资表 where id=&#39;&quot; &amp; text1.text &amp; &quot;&#39;&quot;</<br /><<br />Source=&quot; 小型商店管理系统.mdb&quot; &#39;此处是相对路径 保证没问题  </p>
<p> 小 的前面多一个空格会没问题 ?????</<br />&nbsp; &nbsp; cns = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source= 小型商店管理系统.mdb&quot;</<br /><<br />你的变量 cns 是本地路径 我看应该是 cs = &quot;Pro&#8230;. 吧 ? </p>
<p> cs = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=&quot; 小型商店管理系统.mdb&quot; &#39;此处是相对路径 保证没问题 </<br /><<br />晕看错了</<br /><<br />adodc1.recordsource=&quot;select * from 员工工资表 where id=&quot; &amp; Chr(39) &amp; Text1.Text &amp; Chr(39)  </p>
<p> 呵&#8230;那些符号很烦人的 会乱 所以我都用 Chr(39)代替</<br /><<br />adodc1.recordsource=&quot;select * from 员工工资表 where id=&#39;&quot; &amp; text1.text &amp; &quot;&#39;&quot; </p>
<p> 以上这样应该没问题，要注意id字段为字符型，注意双引号的位置。</<br />回12F 为什么要符号呢 ？ 经常会有有一堆的单双引号逗号混在一起, 稍不留神便多一个或少一个, 找了老半天有时还让你找不出来&#8230;..</</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6795.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[实现][程序][界面]vb怎样实现程序界面窗口在桌面快捷方式图标的下部</title>
		<link>http://www.fetik.cn/2010/02/6794.html</link>
		<comments>http://www.fetik.cn/2010/02/6794.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 19:21:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[实现]]></category>

		<category><![CDATA[界面]]></category>

		<category><![CDATA[程序]]></category>

		<guid isPermaLink="false">/wp/?p=6794</guid>
		<description><![CDATA[rt]]></description>
			<content:encoded><![CDATA[<p>rt</<br />程序跟着快捷方式图标跑，这个比较麻烦。 <br /> 首先，图标在哪都不确定。</<br />先在桌面上找到快捷方式的坐标， <br /> 计算该快捷方式下面的高度够不够显示整个窗口： <br /> &nbsp; 够，在该位置显示窗口； <br /> 不够，在屏幕中心显示窗口。</<br />不过费上面那事儿，还不如显示窗口时，如能恢复到上次关闭前保存的位置就恢复该位置，不能恢复的话就在屏幕中心显示。也就是说，“恢复以前位置”比“显示在指定桌面快捷方式下面的位置”更好、更实用。</<br /><</p>
<p></<br /><</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6794.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[Project][成员]不是Project的成员</title>
		<link>http://www.fetik.cn/2010/02/6793.html</link>
		<comments>http://www.fetik.cn/2010/02/6793.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:31:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<guid isPermaLink="false">/wp/?p=6793</guid>
		<description><![CDATA[这是我截取的一段桌面抓屏的程序片段  Private Sub frmCapture_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load  		Me.DrawStyle = DOT  		&#39;Me.DrawWidth = 2  		&#39;Me.ForeColor = &#38;HFF0000  		DrawBox = True  		Dim DeskhWnd, DeskDC As Integer  		Me.WindowState = System.Windows.Forms.FormWindowState.Maximized  		DeskhWnd = modGraphics.GetDesktopWindow()  		DeskDC = GetDC(DeskhWnd)  		BitBlt(Me.hDC, 0, 0, VB6.PixelsToTwipsX(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width), VB6.PixelsToTwipsY(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height), DeskDC, [...]]]></description>
			<content:encoded><![CDATA[<p>这是我截取的一段桌面抓屏的程序片段 <br /> Private Sub frmCapture_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load <br /> 		Me.DrawStyle = DOT <br /> 		&#39;Me.DrawWidth = 2 <br /> 		&#39;Me.ForeColor = &amp;HFF0000 <br /> 		DrawBox = True <br /> 		Dim DeskhWnd, DeskDC As Integer <br /> 		Me.WindowState = System.Windows.Forms.FormWindowState.Maximized <br /> 		DeskhWnd = modGraphics.GetDesktopWindow() <br /> 		DeskDC = GetDC(DeskhWnd) <br /> 		BitBlt(Me.hDC, 0, 0, VB6.PixelsToTwipsX(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width), VB6.PixelsToTwipsY(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height), DeskDC, 0, 0, SRCCOPY) <br /> 		Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None <br /> 		Me.BackgroundImage = Me.Image <br /> 		UpFlag = False <br /> 		blnCapturing = True <br /> 		Cursor = System.Windows.Forms.Cursors.Cross <br /> 		Timer1.Enabled = True <br /> 	End Sub <br /> 我用的是VS2005，但不知道为什么在“Me.DrawStyle = DOT”和“BitBlt(Me.hDC, 0, 0, VB6.PixelsToTwipsX(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width), VB6.PixelsToTwipsY(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height), DeskDC, 0, 0, SRCCOPY)”处，“Me.DrawStyle = DOT”和“Me.hDC”老是报错，提示为“DrawStyle”,&quot;hDC&quot;，“Image”不是Project的成员.这是为什么？还请各位大虾原来小弟的幼稚</<br />Const SRCCOPY =&amp;HCC0020&nbsp; &#39;你没加这个宣告 <br /> 这个 SRCCOPY 你可以改为 vbSrcCopy 不必宣告常量 </p>
<p> VS2005 我没用过, 下面代码你试试看, 能不能用也请告知, 顺便我也可以得到经验 </p>
<p> &#39;抓取桌面 代码 1 添加 Command1 </p>
<p> Option Explicit <br /> Private Declare Function GetDC Lib &quot;user32&quot; (ByVal hwnd As Long) As Long <br /> Private Declare Function BitBlt Lib &quot;gdi32&quot; (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long <br /> Private Declare Function ReleaseDC Lib &quot;user32&quot; (ByVal hwnd As Long, ByVal hdc As Long) As Long <br /> Private Sub Command1_Click() <br /> &nbsp;  Dim H&amp; <br /> &nbsp;  Me.AutoRedraw = True <br /> &nbsp;  Me.Hide <br /> &nbsp;  DoEvents <br /> &nbsp;  H = GetDC(0) <br /> &nbsp;  BitBlt Me.hdc, 0, 0, Screen.Width / 15, Screen.Height / 15, H, 0, 0, vbSrcCopy <br /> &nbsp;  ReleaseDC 0, H <br /> &nbsp;  SavePicture Me.Image, &quot;c:	t.bmp&quot; <br /> &nbsp;  Me.Show <br /> End Sub </p>
<p> &#39;***************************************************** <br /> &#39;抓取桌面 代码 2&nbsp; 添加 Command1&nbsp; Picture1 </p>
<p> &#39;模拟按下Print Screen <br /> Option Explicit <br /> Private Declare Sub keybd_event Lib &quot;user32&quot; (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) <br /> Private Sub Form_Load() <br /> &nbsp;  Me.AutoRedraw = False <br /> &nbsp;  Picture1.AutoRedraw = True <br /> End Sub </p>
<p> Private Sub Command1_Click() <br /> &nbsp;  Me.Move Screen.Width <br /> &nbsp;  DoEvents <br /> &nbsp;  Call keybd_event(vbKeySnapshot, 0, 0, 0) <br /> &nbsp;  DoEvents <br /> &nbsp;  Picture1.Picture = Clipboard.GetData(vbCFBitmap) <br /> &nbsp;  SavePicture Picture1.Image, &quot;C:TT.BMP&quot; <br /> &nbsp;  Me.Move (Screen.Width - Me.Width)  2, (Screen.Height - Me.Height)  2 <br /> &nbsp;  MsgBox &quot;抓屏完成!&quot; <br /> End Sub </p>
<p> </</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6793.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[安装][VB6.0][企业]如何安装VB6.0企业版</title>
		<link>http://www.fetik.cn/2010/02/6792.html</link>
		<comments>http://www.fetik.cn/2010/02/6792.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 06:14:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[vb6.0]]></category>

		<category><![CDATA[企业]]></category>

		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">/wp/?p=6792</guid>
		<description><![CDATA[希望有人发个完整教程]]></description>
			<content:encoded><![CDATA[<p>希望有人发个完整教程</<br />双击，然后用你的眼睛看，脑子想，手动动，ok</<br />下完了以后 双击setup.exe,下一步,输入序列号,1111111111全是1,然后一直点下一步,点完成,就好了</<br />会安装其它软件吗?一样的.</<br />这个增强版是自动安装的。 <br /> http://download.csdn.net/source/1681525</<br />晕死。。你是来搞笑的吧。。。</<br />和安装普通的应用软件是一样的。注册号全是1.不要安装msdn就可以了。否则安装不上</</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6792.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[出差][北京][春节]出差北京可能要春节前夕才能回来！！</title>
		<link>http://www.fetik.cn/2010/02/6791.html</link>
		<comments>http://www.fetik.cn/2010/02/6791.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 03:28:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<guid isPermaLink="false">/wp/?p=6791</guid>
		<description><![CDATA[散尽所有可用分，不过只有23分：）]]></description>
			<content:encoded><![CDATA[<p>散尽所有可用分，不过只有23分：）</<br />沙发</<br />孤独兄！保重哈！</<br />你的那么多分都花哪了</<br />都被老马拿去包二*了</<br />老大，我来接分了</<br />祝一切顺利&#8230;</<br />来接分了呵呵！！！！！！</<br />jf &#8230;&#8230; <br /> </<br /><<br /><<br />来北京找我哈</<br />一路顺风</<br />巫师大人，不会吧，搞到这么惨，不管怎么的，哥们也得分杯羹</<br />春节能回来就行嘛.只要不春节还在外面.</<br />接分</<br />晕，哪么穷啊，才23分&#8230;</<br />你的那么多分都花哪了</<br />哈哈，回来了，加100分。。。结贴！！！</<br />怎么不能加分呢？？！！</</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6791.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[turbo][basic][记得]turbo basic还有人记得嘛怎么让turbo basic界面显示正常</title>
		<link>http://www.fetik.cn/2010/02/6790.html</link>
		<comments>http://www.fetik.cn/2010/02/6790.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 00:03:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<guid isPermaLink="false">/wp/?p=6790</guid>
		<description><![CDATA[我装的是Turbo Basic 1.1，在Dos中打开后显示的是一堆乱码，不知道该怎么让界面显示正常？]]></description>
			<content:encoded><![CDATA[<p>我装的是Turbo Basic 1.1，在Dos中打开后显示的是一堆乱码，不知道该怎么让界面显示正常？</<br />古老啊。。。</<br />传奇阿。。</<br />虚拟机安装 Windows 98，在那上面运行试试看</<br />QBasic，还依稀记得小霸王时代的&#8230; <br /> 不过那时根本不懂Basic语言，嘿嘿</<br />太老了，现在居然还有人用，勉励一下吧 <br /> 安装dos下的中文字体即可，或在UCDOS下运行，应当没有问题</<br />哪里有dos的中文字体呢？如何安装？我在网上找了半天也没有找到</<br />百度里搜吧,UCDOS 中文</<br />推荐你用Visual Basic 1.0 For DOS。很强大。</<br />很久很久以前用过。</</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6790.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[文件夹][修改][时间]求一个文件夹的修改时间</title>
		<link>http://www.fetik.cn/2010/02/6789.html</link>
		<comments>http://www.fetik.cn/2010/02/6789.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 18:10:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[修改]]></category>

		<category><![CDATA[文件夹]]></category>

		<category><![CDATA[时间]]></category>

		<guid isPermaLink="false">/wp/?p=6789</guid>
		<description><![CDATA[怎样能求一个文件夹的修改时间,注意是文件夹哈.不是文件.VB6的环境]]></description>
			<content:encoded><![CDATA[<p>怎样能求一个文件夹的修改时间,注意是文件夹哈.不是文件.VB6的环境</<br />Private Sub Command1_Click() <br /> &nbsp;  MsgBox ChkFolder(&quot;c:music&quot;) <br /> End Sub </p>
<p> Public Function ChkFolder(FolNm$) As Date <br /> &nbsp;  Dim fso, f <br /> &nbsp;  Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;) <br /> &nbsp;  Set f = fso.GetFolder(FolNm) <br /> &nbsp;  ChkFolder = f.DateLastModified <br /> End Function <br /> </<br />可以用 API 完成： <br /> FindFirstFile() <br /> FindClose() <br /> FileTimeToSystemTime() <br /> </<br /><<br />哦.我先试试哈.谢谢楼上的几位.</</p>
<p></<br />晕没看到,最后一个答案.我就说filedatetime怎么没人提来着&#8230;..</<br />filedatetime 是正解 </p>
<p> 惭愧, 竟然连它我也搞忘了&#8230;..</<br />呵呵，老了嘛！记忆减退很正常，别往心里去</<br />谢谢大家了哈.</</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6789.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[提取][文档][数据]求助：用VB如何提取TXT文档数据</title>
		<link>http://www.fetik.cn/2010/02/6788.html</link>
		<comments>http://www.fetik.cn/2010/02/6788.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 04:14:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[提取]]></category>

		<category><![CDATA[数据]]></category>

		<category><![CDATA[文档]]></category>

		<guid isPermaLink="false">/wp/?p=6788</guid>
		<description><![CDATA[如下：如何用VB实现提取DCHNO对应的数据？如果回答得好，追加给分，第一次发帖！！！！ 
 XXXX  ABCDEF1 
 CHGR&#160;  SCTYPE&#160; &#160; SDCCH&#160;  SDCCHAC&#160;  TN&#160;  CBCH&#160; &#160;  HSN&#160;  HOP&#160; DCHNO   0&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 4&#160; &#160; &#160;  0&#160; &#160; &#160; &#160; 2&#160; &#160; NO&#160; &#160; &#160;  48&#160; &#160; ON&#160; &#160; 516  &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>如下：如何用VB实现提取DCHNO对应的数据？如果回答得好，追加给分，第一次发帖！！！！ </p>
<p> XXXX <br /> ABCDEF1 </p>
<p> CHGR&nbsp;  SCTYPE&nbsp; &nbsp; SDCCH&nbsp;  SDCCHAC&nbsp;  TN&nbsp;  CBCH&nbsp; &nbsp;  HSN&nbsp;  HOP&nbsp; DCHNO <br />  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; NO&nbsp; &nbsp; &nbsp;  48&nbsp; &nbsp; ON&nbsp; &nbsp; 516 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  545 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  576 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  593 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  631 <br />  2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; NO&nbsp; &nbsp; &nbsp;  47&nbsp; &nbsp; OFF&nbsp;  550 </p>
<p> XXXX <br /> ABCDEF2 </p>
<p> CHGR&nbsp;  SCTYPE&nbsp; &nbsp; SDCCH&nbsp;  SDCCHAC&nbsp;  TN&nbsp;  CBCH&nbsp; &nbsp;  HSN&nbsp;  HOP&nbsp; DCHNO <br />  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  14&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; NO&nbsp; &nbsp; &nbsp;  33&nbsp; &nbsp; ON&nbsp; &nbsp; 519 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  543 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  562 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  566 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  573 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  576 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  611 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  615 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  623 <br />  2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; NO&nbsp; &nbsp; &nbsp;  39&nbsp; &nbsp; OFF&nbsp;  620 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  3 </p>
<p> XXXX <br /> ABCDEF3 </p>
<p> CHGR&nbsp;  SCTYPE&nbsp; &nbsp; SDCCH&nbsp;  SDCCHAC&nbsp;  TN&nbsp;  CBCH&nbsp; &nbsp;  HSN&nbsp;  HOP&nbsp; DCHNO <br />  0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; NO&nbsp; &nbsp; &nbsp;  24&nbsp; &nbsp; ON&nbsp; &nbsp; 517 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  541 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  557 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  592 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  595 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  599 <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  606 <br />  2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; NO&nbsp; &nbsp; &nbsp;  13&nbsp; &nbsp; OFF&nbsp;  545</<br />line input #文件号,字符串变量</<br />读表？ <br /> 一行一行读吧，然后用split(input,&quot; &quot;)之类的分割 <br /> 把空内容去掉，就得到你的数组了……</<br />text文件是什么格式？ <br /> fixed，tabed/空格分的？</<br />用 split ，很简单的，你要取哪个数？</<br />谢谢大家都回答，我没说明我的目的，对不起； <br /> 是这样的，我要提取的是DCHNO对应下面的数字，其实用TXT打开是很规范的，不知道发上来怎么会变扭曲了。 <br /> 比如： <br /> DCHNO <br /> 541 <br /> 557  <br /> 592 <br /> 592 <br /> 592&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br /> 谢谢大家&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  </<br />我发现你贴出来的文本内容本身就是错位的啊。 <br /> 如果是“规范”的，提取数据很容易。 </p>
<p> 可不可以提供个实际样本来看一下呢？ <br /> 如果文件比较大，可以只提供一部分数据。 <br /> </<br />不难</<br />考到excel ，在数据拆分，用距离拆分就行</<br /><</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6788.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[VB5.0][下载][地址]急！！求VB5.0下载地址</title>
		<link>http://www.fetik.cn/2010/02/6787.html</link>
		<comments>http://www.fetik.cn/2010/02/6787.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 04:14:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<guid isPermaLink="false">/wp/?p=6787</guid>
		<description><![CDATA[我用6.0编的程序，打包要用6.0的运行库，觉得大了点，后得知用VB5.0编译的话就不需要带运行库了。 所以哪位大大啊，给个VB5.0的安装程序啊 ， 或者哪位上传到哪个网络硬盘里去让我下载下啊。&#160; 谢谢各位大大了 。！！！！！！  &#160; 我在网上都搜了很久了，都没找到，郁闷死了。。。。。。。。。。。。。。。]]></description>
			<content:encoded><![CDATA[<p>我用6.0编的程序，打包要用6.0的运行库，觉得大了点，后得知用VB5.0编译的话就不需要带运行库了。 所以哪位大大啊，给个VB5.0的安装程序啊 ， 或者哪位上传到哪个网络硬盘里去让我下载下啊。&nbsp; 谢谢各位大大了 。！！！！！！ <br /> &nbsp; 我在网上都搜了很久了，都没找到，郁闷死了。。。。。。。。。。。。。。。</<br /><a href="http://www.dhzx.net/Soft/Class57/Class58/200410/69.html" target="_blank" >http://www.dhzx.net/Soft/Class57/Class58/200410/69.html</a></<br />下到了没有?!记得将那个序列号,若没问题,提醒结贴!</<br />谢谢哈</</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6787.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[shell][调用][文件]为什么用shell调用bat文件会报无效的过程调用或参数的错误请高手指点迷津！！！</title>
		<link>http://www.fetik.cn/2010/02/6786.html</link>
		<comments>http://www.fetik.cn/2010/02/6786.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 03:28:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[VB程序开发]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[SHELL]]></category>

		<category><![CDATA[文件]]></category>

		<category><![CDATA[调用]]></category>

		<guid isPermaLink="false">/wp/?p=6786</guid>
		<description><![CDATA[Private Sub cmdshangbao_Click()  Dim i, j, k As Integer  Dim int_file As Integer  Dim filename As String  Dim filepath As String  Dim fso1, fso2  Dim fil1, fil2  Dim RetVal  Set fso1 = CreateObject(&#34;Scripting.FileSystemObject&#34;)  Set fil1 = fso1.CreateTextFile(&#34;c:ftp_file.txt&#34;, True)  fil1.writeline (&#34;open&#160;  192.168.1.120&#34;)  fil1.writeline (&#34;user&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Private Sub cmdshangbao_Click() <br /> Dim i, j, k As Integer <br /> Dim int_file As Integer <br /> Dim filename As String <br /> Dim filepath As String <br /> Dim fso1, fso2 <br /> Dim fil1, fil2 <br /> Dim RetVal <br /> Set fso1 = CreateObject(&quot;Scripting.FileSystemObject&quot;) <br /> Set fil1 = fso1.CreateTextFile(&quot;c:ftp_file.txt&quot;, True) <br /> fil1.writeline (&quot;open&nbsp;  192.168.1.120&quot;) <br /> fil1.writeline (&quot;user&nbsp;  audit01&nbsp;  123456 &quot;) <br /> Set fso2 = CreateObject(&quot;Scripting.FileSystemObject&quot;) <br /> Set fil2 = fso2.CreateTextFile(&quot;c:ftp_file.bat&quot;, True) <br /> fil2.writeline (&quot;ftp -in  &lt;&nbsp; ftp_file.txt&quot;) <br /> If Me.ListBox1.ListCount = 0 Then <br /> &nbsp; &nbsp; MsgBox &quot;没有文件，退出！&quot; <br /> &nbsp; &nbsp; Exit Sub <br /> End If <br /> int_file = Me.ListBox1.ListCount <br /> For i = 0 To int_file - 1 <br /> &nbsp; &nbsp; filename = Trim(Me.ListBox1.List(i)) <br /> &nbsp; &nbsp; filepath = &quot;put&nbsp; &quot; &amp; ActiveWorkbook.Path &amp; &quot;&quot; &amp; filename &amp; &quot; &quot; &amp; filename <br /> &nbsp; &nbsp; fil1.writeline (filepath) <br /> Next <br /> fil1.writeline (&quot;by &quot;) </p>
<p> RetVal = Shell(&quot;c:ftp_file.bat&quot;, vbMaximizedFocus)&nbsp; &#39;这里总是报无效的过程调用或参数，为啥fil1.Close <br /> fil2.Close <br /> MsgBox &quot;文件上传完成！&quot; <br /> Kill &quot;c:ftp_file.txt&quot; <br /> Kill &quot;c:ftp_file.bat&quot; <br /> End Sub  </p>
<p> </<br />我在dos下执行c:ftp_file.bat完全正常，为什么？</<br />改为 <br /> RetVal = Shell(&quot;cmd /c c:ftp_file.bat&quot;, vbNormalFocus)  <br /> 试试</<br />C/前后各一个空格,vbNormalFocus无所谓.</<br />我改成了RetVal = Shell(&quot;cmd /c c:ftp_file.bat&quot;, vbNormalFocus)， <br /> 可以为什么出来的ftp命令成了： <br /> <span style="color:#FF0000">d:&gt;ftp -in&nbsp; 0 &lt;ftp_file.txt</span> <br /> 而bat中的文件内容为：ftp -in  &lt;ftp_file.txt <br /> shell出来的结果多了个0，导致无法连接，为什么？ <br />  </<br />Shell(&quot;cmd /c c:ftp_file.bat&quot;)仅是调用cmd.EXE去执行c:ftp_file.bat文件,仅此而已. </<br />去掉参数/c 试一下: <br /> Shell(&quot;cmd c:ftp_file.bat&quot;)</<br />谢谢SYSSZ，已经找到原因 <br /> 把这两句移到前面就没有问题了 </p>
<p> <span style="color:#FF0000">fil1.Close  <br /> fil2.Close </span> <br /> RetVal = Shell(&quot;c:ftp_file.bat&quot;, vbMaximizedFocus)&nbsp;  <br /> </</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fetik.cn/2010/02/6786.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
