<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=180,private" />
</head>

<card id="read" title="Anime|Game - 秋忆">

<p>

<b>回复:</b> vb2008

<br/><b>#11</b> 变量查询 <small>[memoriesoff 01-17 17:37]</small><br/>
--过程 <br />
Namespace DataSet1TableAdapters <br />
    Partial Class ZHSH_MV_SHOPTableAdapter <br />
        Inherits System.ComponentModel.Component <br />
        Public Property SelectCommand() As OracleClient.OracleCommand() <br />
            Get <br />
                If (Me._commandCollection Is Nothing) Then <br />
                    Me.InitCommandCollection() <br />
                End If <br />
                Return Me._commandCollection <br />
            End Get <br />
            Set(ByVal value As OracleClient.OracleCommand()) <br />
                Me._commandCollection = value <br />
            End Set <br />
        End Property <br />
        Public Function FillByWhere(ByVal dataTable As DataSet1.ZHSH_MV_SHOPDataTable, ByVal WhereExp As String) As Integer <br />
            Dim stSelect As String <br />
            stSelect = Me._commandCollection(0).CommandText <br />
            Try <br />
                Me._commandCollection(0).CommandText += &quot; WHERE &quot; + WhereExp <br />
                Return Me.Fill(dataTable) <br />
            Catch ex As Exception <br />
            Finally <br />
                Me._commandCollection(0).CommandText = stSelect <br />
            End Try <br />
        End Function <br />
    End Class <br />
End Namespace <br />
--按钮 <br />
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click <br />
        Dim stCustID As String = Trim(TextBox1.Text) <br />
        Dim stShipCntry As String = Trim(TextBox2.Text) <br />
        &#39; Pass in a SELECT with no WHERE that conforms to the the DataTAble <br />
        &#39; used by the TableAdapter&#39;s DataSet <br />
        Me.ZHSH_MV_SHOPTableAdapter.SelectCommand(0).CommandText = _ <br />
        &quot;SELECT * FROM oracle.ZHSH_MV_SHOP&quot; <br />
        &#39; Build a string cont ..


<br/><b>#12</b> 函数 <small>[memoriesoff 01-18 15:09]</small><br/>
text1满足条件，赋值<br />
If Len(TextBox1.Text) = 4 Then<br />
TextBox2.Text = Replace(TextBox1.Text, 0, 9)<br />
End If


<br/><b>#13</b> 教程 <small>[memoriesoff 01-20 15:33]</small><br/>
DataGridView[attachment=69]


<br/><b>#14</b> 打开一个文件并返回所在路径 <small>[memoriesoff 01-20 17:25]</small><br/>
 &#39; 打开一个文件并返回所在路径<br />
Dim OpenFileDialog1 As New OpenFileDialog<br />
OpenFileDialog1.Filter = &quot;Excle文件(*.xls)|*.xls&quot;<br />
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then<br />
Dim fileName As String = OpenFileDialog1.FileName<br />
&#39;返回文件所在路径<br />
TextBox1.Text = OpenFileDialog1.FileName<br />
End If


</p>

<p><small><a href="read.php?tid=216&amp;page=1">&#60;&#60;</a> <a href="read.php?tid=216&amp;page=1">1</a> <a href="read.php?tid=216&amp;page=2">2</a> <b>3</b></small> <input type="text" name="page" size="3" format="*N" /> <do type="accept" label="GO"><go href="read.php?tid=216&amp;" method="post"><postfield name="page" value="$(page)" /></go></do><small><a href="read.php?tid=216&amp;page=3">&#62;&#62;</a> (3/3)</small></p>

<p><a href="post.php?action=reply&amp;tid=216">回复</a> <a href="post.php?fid=40">发表</a><br /><a href="list.php?fid=40">主题</a> <a href="index.php?prog=cate">版块</a></p>

<p>

<anchor>返回<prev/></anchor> <a href="index.php">首页</a><br/>

<a href="index.php?prog=login">登录</a>

</p>
<p><small><b>PHPWind</b> V7.5 SP2</small></p>
</card></wml>
