ADOQuery1查询出来的时间记录为:aa(开始时间),bb(结束时间)
cc 为查出来的故障范围
while not ADOQuery1.Eof then
begin
if cc='制动环节' then
if aa=0 then
begin
.............................(画网络图)
.............................
end
else
begin
.......................
.......................
end;
if bb=0 then
begin
.............................
.............................
end
else
begin
cc 为查出来的故障范围
while not ADOQuery1.Eof then
begin
if cc='制动环节' then
if aa=0 then
begin
.............................(画网络图)
.............................
end
else
begin
.......................
.......................
end;
if bb=0 then
begin
.............................
.............................
end
else
begin
解决方案 »
- 有没高手编写过pos之类的软件,本人想了解一下条形扫描器的用法
- 简单问题,在线
- tidhttp新问题在线等待,急急急(绝对高分)
- delphi中如何将其他文件格式的文件转换成Stream格式?
- 有关combobox.items.add('name=value')的问题
- 关于办公室自动化(OA)的议题,来者有分,不够可另开贴给分
- 关于CLIENTDATASET新增记录和编辑记录的问题
- 纯粹用ADOQuery操作数据库,如何让两个表一一对应,并且顺序相同?
- 如何改变Label Disabled时的字体颜色?
- 求救——将字符串中的指定字符替换为其他字符的函数是什么?
- 请教大家一个问题,delphi是否可以调用matlab,能否进行matlab扩展编程?
- 想了一天没想出来!急!急!急!
.......................
end;
if cc='电器' then
if aa=0 then
begin
.............................
.............................
end;
else
begin
.......................
.......................
end;
if bb=0 then
begin
.............................
.............................
end
else
begin
.......................
.......................
end;
end;
请问这样的程序有错误吗?执行时系统不报错。但就是不按规定运行。到底是怎么回事?是不是我的语法上有错误?
begin
if cc='制动环节' then
begin //加begin
if aa=0 then
begin
.............................(画网络图)
.............................
end
else
begin
.......................
.......................
end;
if bb=0 then
begin
.............................
.............................
end
else
begin
.......................
.......................
end;
end;//加end
if cc='电器' then
begin //加begin
if aa=0 then
begin
.............................
.............................
end //去掉;
else
begin
.......................
.......................
end;
if bb=0 then
begin
.............................
.............................
end
else
begin
.......................
.......................
end;
end;//加end
end;
begin
if...
if...
end
if cc='电器' then
begin
if ...
if..
end
则
bb(结束时间)
也肯定为0所以
if cc='电器' then
if aa=0 then
begin
.............................
.............................
end;------------------------------------->这里多了一个“;”
else
begin
.......................
.......................
end;
if bb=0 then
begin