Tag Archives: 語法

mysql 查詢其他表做update

這只是一篇文記,我不打算詳細說明 主要功能就是把某一個表的資料參照過來做更新 Continue reading

Posted in 學習筆記 | Tagged , | Leave a comment

Delphi的If…then..Else

在條件事選擇的時候,通常可以用幾種選擇性結構進行判斷 在php中 if 條件式是這麼下的 if (a!=0){ 做什麼事;}else{ 做另一件事; } 如此一來,完成一個選擇性的結構 在delphi中,法語有一些些的不同,在if..than…else的結構中,不能放;(if條件句結束),如果要放;,只能加在begin…end中 下面是做按鈕的開關sample If Edit1.Text=" Then Button1.Enable:=false Else Button1.Enable:=true; <—最後要加分號做結束 多內容的If…Then…Else語法 If Edit1.Text=" Then begin Button1.Enable:=false; Button2.Enable:=false; Button3.Enable:=false; end <—第1個End 不加 ; 最後一個End 才加; Else begin Button1.Enable:=true; Button2.Enable:=true; Button3.Enable:=true; end ;

Posted in Dephi | Tagged , | Leave a comment