type
TShenQingDanForm1 = class(TForm)
Image1: TImage;
Label2: TLabel;public
Ptypeid: array[1..8] of string;
UnitRate1:array[1..8] of real;end;
//这条语句写在那才能实现
Const
GridNum:integer=50;//如下的定义呢??? Ptypeid: array[1..GridNum] of string;
UnitRate1:array[1..GridNum] of real;
解决方案 »
- fastreport 打印的条码 识别率的问题
- 新手问题:那些书介绍delphi中DLL编程方面比较详细,全面.先谢谢了.
- 一个简单问题,马上结贴!!!
- 多线程用ADOQUERY执行简单的查询,出现提示“尚未调用coinitialize”
- 如何转化一个byte 数组 到一个 char 数组中
- 怎样在Dephi6.0中正常显示MS SQL SERVER 2000中文版中的中文字段(新手求救)
- 怎样添加记录?
- 欢迎使用我开发的通用查询系统
- delphi7.01与DELPHI的区别在哪里?
- 有关一个RXDBCtrl.dcu的问题
- TBitMap.LoadFromResourceName中程序如何创建资源文件
- 测试
type
TShenQingDanForm1 = class(TForm)
Image1: TImage;
Label2: TLabel;public
Ptypeid: array[1..GridNum] of string;
UnitRate1:array[1..GridNum] of real;end;
public
class function GridNum: Integer;
end;class function TShenQingDanForm1.GridNum: Integer;
begin
Result := 50;
end;————————————————————————————————————
宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
————————————————————————————————————
TShenQingDanForm1 = class(TForm)
…… end;这样就行了
cGridNum1 :integer=50;
cgridnum2 =50;
var
gGridNum :integer=50;
其它单元调用这个常量只要在INTERFACE处uses此单元就可以了...