標題:
[發問]
select case搭配if使用需求問題
[打印本頁]
作者:
爆肝達人
時間:
2015-3-26 20:35
標題:
select case搭配if使用需求問題
全域變數
sValue long
sub裡面
宣告一個變數為tValue int
tValue = test.text
Select case tValue
case is =33
sValue = 33
case is =44
sValue = 44
select end
if sValue = 33 and
tValue = 88 then
WirteValue 1.text= 1
end if
if sValue = 33 and
tValue = 88 then
WirteValue 2.text=1
end if
exit sub
select case tValue
case is =33
sValue = 33
case is =44
sValue = 44
select end
複製代碼
請問一下這樣程式哪邊該修 執行上會有問題
第一次讀到的值 如為33或44 存在全域變數
第二次讀到的值 如為88 就會跳到if判斷 讓WirteValue.text寫入1 這樣
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)