procedure TForm1.Button1Click(Sender: TObject);
var
i:single;
begin
randomize; i:=Random;
label1.Caption:=floattostr(i);
end;编译的时候,提示
[Error] random.pas(33): '.' expected but ';' found不知道 是怎么回事当begin
randomize; i:=Random(100);
label1.Caption:=floattostr(i);
end;[Error] random.pas(33): '.' expected but '(' found好像 就是 没有把 random当成函数看。
是不是我的delphi本身有问题呢???
var
i:single;
begin
randomize; i:=Random;
label1.Caption:=floattostr(i);
end;编译的时候,提示
[Error] random.pas(33): '.' expected but ';' found不知道 是怎么回事当begin
randomize; i:=Random(100);
label1.Caption:=floattostr(i);
end;[Error] random.pas(33): '.' expected but '(' found好像 就是 没有把 random当成函数看。
是不是我的delphi本身有问题呢???
解决方案 »
- 临时表
- 请问 dataset,connection,database,datasource,query之间的关系..谢谢
- 图象处理问题
- 关于在Delphi应用程序中加载插件(重金悬赏)
- 如何在dbgrid中多行选择后使它变成另外一种颜色?高分相送!
- 有谁给我这个控件(skinengine)我将向天大喊三声(谢谢)。--憋死了,我找不到。
- 有没有有Delphi4安装盘的朋友,我急需!
- InstallShield的卸载快捷方式
- 急急急,请问有什么办法把16位资源文件中的文件提取出来。
- 送分:数码相机问题!!!
- 救我!wordapplication控件出大事了!
- 线程实例TERMINATE之后是不是还在?如果建立两个同名的线程实例,实际运行是几个?
i:integer;
begin
randomize; i:=Random(100);
label1.Caption:=floattostr(i);
end;可以运行的。