⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vfp2.htm

📁 visual foxpro教程
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>第二课</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<link rel="stylesheet" href="../../../cpcw.css"></head>

<body background="../../bg.gif">
<table width="85%" border="0" align="center">
  <tr bgcolor="#FFFFFF"> 
    <td> 
      <p align="center"><font color="#008000"><strong class="title"><font color="#FF0066">第二课:表和索引</font></strong></font></p>
      <p align="left"><font color="#008000"><strong><br>
        </strong></font>  在上一课里,向大家介绍了Visual FoxPro 6.0 的发展历程、功能、安装、基本操作等一些基本的情况,对于Visual 
        FoxPro 6.0丰富的内容来说,这只能是走马观花,只是为我们进入这一课做个引子。</p>
      <p align="left">  如果可以把一个Visual FoxPro 6.0应用程序比做是一座大厦的话,那么,表就是其中一块块砖瓦--处理数据和建立关系型数据库及应用程序的基本单元。<br>
          <br>
          那么,什么是表呢?让我们用例子来说明。我们在日常的工作、生活中,遇到的大量的数据有很多都是以表格形式出现的,下面的表格就是我们熟悉的某单位的人事花名册的一个部分:</p>
      <div align="center">
        <center>
          <table border="1" width="90%" height="261">
            <tr> 
              <td width="4%" align="center" height="30">编号</td>
              <td width="11%" align="center" height="30">姓&nbsp; 名</td>
              <td width="5%" align="center" height="30">
                <p align="center">性别
              </td>
              <td width="10%" align="center" height="30">出生年月</td>
              <td width="11%" align="center" height="30">
                <p align="center">籍&nbsp; 贯
              </td>
              <td width="10%" align="center" height="30">工作时间</td>
              <td width="12%" align="center" height="30">技术职务</td>
              <td width="9%" align="center" height="30">聘任时间</td>
              <td width="12%" align="center" height="30">备&nbsp; 注</td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">1</td>
              <td width="11%" align="center" height="19">李漱玉</td>
              <td width="5%" align="center" height="19">女</td>
              <td width="10%" height="19" align="center">1969.09</td>
              <td width="11%" height="19" align="center">北京市</td>
              <td width="10%" height="19" align="center">1990.07</td>
              <td width="12%" height="19" align="left">讲师</td>
              <td width="9%" height="19" align="center">1997.12</td>
              <td width="12%" height="19">  </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">2</td>
              <td width="11%" align="center" height="19">王清照</td>
              <td width="5%" align="center" height="19">女</td>
              <td width="10%" height="19" align="center">1951.11</td>
              <td width="11%" height="19" align="center">山东济南</td>
              <td width="10%" height="19" align="center">1969.09</td>
              <td width="12%" height="19" align="left">教授</td>
              <td width="9%" height="19" align="center">1995.11</td>
              <td width="12%" height="19">  </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">3</td>
              <td width="11%" align="center" height="19">辛如虎</td>
              <td width="5%" align="center" height="19">男</td>
              <td width="10%" height="19" align="center">1954.08</td>
              <td width="11%" height="19" align="center">山东青岛</td>
              <td width="10%" height="19" align="center">1973.12</td>
              <td width="12%" height="19" align="left">副教授</td>
              <td width="9%" height="19" align="center">1997.12</td>
              <td width="12%" height="19">1987年转业</td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">4</td>
              <td width="11%" align="center" height="19">柳长亭</td>
              <td width="5%" align="center" height="19">男</td>
              <td width="10%" height="19" align="center">1960.06</td>
              <td width="11%" height="19" align="center">河北无极</td>
              <td width="10%" height="19" align="center">1984.01</td>
              <td width="12%" height="19" align="left">副教授</td>
              <td width="9%" height="19" align="center">1996.01</td>
              <td width="12%" height="19"> </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">5</td>
              <td width="11%" align="center" height="19">张&nbsp; 煜</td>
              <td width="5%" align="center" height="19">男</td>
              <td width="10%" height="19" align="center">1972.07</td>
              <td width="11%" height="19" align="center">河南光山</td>
              <td width="10%" height="19" align="center">1995.07</td>
              <td width="12%" height="19" align="left">助理工程师</td>
              <td width="9%" height="19" align="center">1996.09</td>
              <td width="12%" height="19"> </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">6</td>
              <td width="11%" align="center" height="19">周春花</td>
              <td width="5%" align="center" height="19">女</td>
              <td width="10%" height="19" align="center">1963.01</td>
              <td width="11%" height="19" align="center">福建厦门</td>
              <td width="10%" height="19" align="center">1987.10</td>
              <td width="12%" height="19" align="left">高级实验师</td>
              <td width="9%" height="19" align="center">1997.01</td>
              <td width="12%" height="19"> </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">7</td>
              <td width="11%" align="center" height="19">李&nbsp; 甫</td>
              <td width="5%" align="center" height="19">男</td>
              <td width="10%" height="19" align="center">1968.02</td>
              <td width="11%" height="19" align="center">上海市</td>
              <td width="10%" height="19" align="center">1991.06</td>
              <td width="12%" height="19" align="left">助理研究员</td>
              <td width="9%" height="19" align="center">1996.05</td>
              <td width="12%" height="19"> </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">8</td>
              <td width="11%" align="center" height="19">欧阳太白</td>
              <td width="5%" align="center" height="19">男</td>
              <td width="10%" height="19" align="center">1947.01</td>
              <td width="11%" height="19" align="center">广西桂林</td>
              <td width="10%" height="19" align="center">1967.08</td>
              <td width="12%" height="19" align="left">研究员</td>
              <td width="9%" height="19" align="center">1995.11</td>
              <td width="12%" height="19"> </td>
            </tr>
            <tr> 
              <td width="4%" align="center" height="19">9</td>
              <td width="11%" align="center" height="19">司马维</td>
              <td width="5%" align="center" height="19">女</td>
              <td width="10%" height="19" align="center">1946.06</td>
              <td width="11%" height="19" align="center">四川成都</td>
              <td width="10%" height="19" align="center">1968.05</td>
              <td width="12%" height="19" align="left">副研究员</td>
              <td width="9%" height="19" align="center">1996.01</td>
              <td width="12%" height="19"> </td>
            </tr>
          </table>
        </center>
      </div>
      <p>  这是一个简单的二维的表格。它是由行和列组成,表格中的每一行在Visual FoxPro的“表”中称为一个纪录,表格中的每一列则称为一个字段。实际上,这个二维表格就是我们所说的Visual 
        FoxPro中的“表”。它在较早的数据库产品中,被称为数据库(.dbf),而在Visual FoxPro中,原来的数据库已“改名”为表了,这样更直观、明了。Visual 
        FoxPro中的数据库是由表(.dbf)构成的,其扩展名为.doc。</p>
      <p>  下面,我们利用上面的示例为基础来介绍如何创建新表、处理和修改已有的表,以及如何创建索引来对表中数据进行排序和加快处理。为了方便存取我们所作的练习,我们在上一课中已用“选项”卡设置了文件存取的默认位置(c:\myvfp)。当然,指定目录时也可用“set 
        default to&nbsp; 默认目录”的方法。<br>
          <br>
          <a href="vfp2-1.htm">2.1 创建新表</a></p>
      <p>  <a href="vfp2-2.htm">2.2 查看表中的信息</a></p>
      <p>  <a href="vfp2-3.htm">2.3 修改表</a></p>
      <p>  <a href="vfp2-4.htm">2.4 定制表</a></p>
      <p>  <a href="vfp2-5.htm">2.5 索引</a></p>
      <p>  <a href="vfp2-6.htm">2.6 本课小结</a></p>
      <p align="center"><a href="http://www.cpcw.com">电脑报首页</a> <a href="../../index.htm">网络学院首页</a></p>
      </td>
  </tr>
</table>
<p align="center"> <font color="#008000"><strong> </strong></font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -