高分求记录块解决方法 1.索引 integer2.姓名 string3.个人介绍 memo包括建立、添加、读取记录块资料最好是记录块的2项和3项不是固定的大小,那样挺占空间的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 先定义这个记录类型:TPerson=Record Index:Integer; Name:string; Introduciton:string;end;然后定义这种类型的变量:Person:TPerson;然后赋值:Person.Index:=...;Person.Name:=...;Person.Introduction:=...;读取跟赋值类似:Person.IndexPerson.NamePerson.Introduction不过一般很少这么用,一般都是定义记录数组,也就是定义了TPerson这个记录类型之后,定义一个数组:Person:array of TPerson;赋值和引用的时候加上序号:Person[i].IndexPerson[i].NamePerson[i].Introduction 定义一維动态数组就是:Person:array of TPerson;使用前SetLength(Person,x);//x:Integer;来确定数组长度使用后SetLength(Person,0);清空就行了按标题查询一条具体指什么?一般都是在循环里用序号控制的:Person[i].IndexPerson[i].Name 定义这个数组的步骤1.TPerson=Record Index:Integer; Name:string; Introduciton:string;end;2.Person:array of TPerson;当我知道某个Name的时候,需要知道他的[i],并且知道Person[i].Introduction,是不是要写个循环来查询啊? Tlistivew 控件的CTRL+热键 调用的什么事件? 关于变量名存储的问题 能否帮忙把代码翻译成delphi 的,谢谢。 Object Inspector 很久不用了DELPHI,有个问题请教 如何生成这样的报表? 三層中服務器是否配置出錯,請幫忙! 请教高手一个问题,急!!! 如何远程修改数据库中的列属性定义(请高手赐教,多谢!!!) 问个问题:)希望大家帮忙。 socket救急! 有谁用过Help & Manual做帮助文件,怎么做中文帮助时有那么多乱码?
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
Person:array of TPerson;
使用前SetLength(Person,x);//x:Integer;来确定数组长度
使用后SetLength(Person,0);清空就行了按标题查询一条具体指什么?
一般都是在循环里用序号控制的:
Person[i].Index
Person[i].Name
1.
TPerson=Record
Index:Integer;
Name:string;
Introduciton:string;
end;
2.
Person:array of TPerson;
当我知道某个Name的时候,需要知道他的[i],并且知道Person[i].Introduction,是不是要写个循环来查询啊?