1.索引               integer
2.姓名               string
3.个人介绍           memo包括建立、添加、读取记录块资料
最好是记录块的2项和3项不是固定的大小,那样挺占空间的

解决方案 »

  1.   

    先定义这个记录类型:
    TPerson=Record
      Index:Integer;
      Name:string;
      Introduciton:string;
    end;然后定义这种类型的变量:
    Person:TPerson;然后赋值:
    Person.Index:=...;
    Person.Name:=...;
    Person.Introduction:=...;读取跟赋值类似:
    Person.Index
    Person.Name
    Person.Introduction不过一般很少这么用,一般都是定义记录数组,也就是定义了TPerson这个记录类型之后,定义一个数组:
    Person:array of TPerson;赋值和引用的时候加上序号:
    Person[i].Index
    Person[i].Name
    Person[i].Introduction
      

  2.   

    定义一維动态数组就是:
    Person:array of TPerson;
    使用前SetLength(Person,x);//x:Integer;来确定数组长度
    使用后SetLength(Person,0);清空就行了按标题查询一条具体指什么?
    一般都是在循环里用序号控制的:
    Person[i].Index
    Person[i].Name
      

  3.   

    定义这个数组的步骤
    1.
    TPerson=Record
      Index:Integer;
      Name:string;
      Introduciton:string;
    end;
    2.
    Person:array of TPerson;
    当我知道某个Name的时候,需要知道他的[i],并且知道Person[i].Introduction,是不是要写个循环来查询啊?