![]() |
在這個頁面顯示本主題全部的 6 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- [求救] (http://www.chiefox.com.tw/bbs/showthread.php?threadid=20101)
[求救]
請教 在多分鐘時間裡 1分到10分鐘用a組參數 11分鐘以上用 b組參數 請教如何來寫......謝謝....感恩......
回覆: [求救]
引用:
最初由 pt152 發表
請教 在多分鐘時間裡 1分到10分鐘用a組參數 11分鐘以上用 b組參數 請教如何來寫......謝謝....感恩......
原碼:
CK1:=DATATYPE=1 or DATATYPE=2; {1分or 5分} CK2:=DATATYPE=11 and DATATYPEM<11; {多分鐘 and 小於11分} if CK1 or Ck2 then begin //定義參數為A組 end else begin //定義參數為B組 end;
感謝 你...........
求救:
改成下面...但不能執行......不知錯在哪裡....麻煩你 幫忙修改......謝謝....感恩......
CK1:=DATATYPE=11 and DATATYPEM<=10; {多分鐘 and <=10分}
CK2:=DATATYPE=11 and DATATYPEM>=11; {多分鐘 and >=11分}
if CK1 then begin //定義參數為A組
M1:=if(datatype=11,3);
M2:=if(datatype=11,1);
M3:=if(datatype=11,3);
end else if CK2 then begin //定義參數為B組
M1:=if(datatype=11,4);
M2:=if(datatype=11,1);
M3:=if(datatype=11,3);
end;
回覆: 求救:
引用:
最初由 pt152 發表
改成下面...但不能執行......不知錯在哪裡....麻煩你 幫忙修改......謝謝....感恩......
CK1:=DATATYPE=11 and DATATYPEM<=10; {多分鐘 and <=10分}
CK2:=DATATYPE=11 and DATATYPEM>=11; {多分鐘 and >=11分}
if CK1 then begin //定義參數為A組
M1:=if(datatype=11,3);
M2:=if(datatype=11,1);
M3:=if(datatype=11,3);
end else if CK2 then begin //定義參數為B組
M1:=if(datatype=11,4);
M2:=if(datatype=11,1);
M3:=if(datatype=11,3);
end;
原碼:
CK1:=DATATYPE=1 or DATATYPE=2; {1分or 5分} CK2:=DATATYPE=11 and DATATYPEM<11; {多分鐘 and 小於11分} if CK1 or Ck2 then begin //A組 M1:=3; M2:=1; M3:=3; end else begin //B組 M1:=4; M2:=1; M3:=3; end;
感謝你.......謝謝........
| 全部時間均為台灣時間, 現在時間為13:51 | 在這個頁面顯示本主題全部的 6 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.