VB6.0 的溢位問題
在VB6.0中如果產生溢位的話 會跳出錯誤的訊息
但是我想照樣把值算出來
請問有辦法處理嗎??
code======
Private Sub Command1_Click()
Dim c As Integer
a = Val(Text1.Text): b = Val(Text2.Text)
c = a + b
Text3.Text = c
End Sub
===젩
--
十樓跳下來:「阿..............................碰~~~」
三樓跳下來:「碰........阿!!!!!!!!!!!!!!」
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 211.74.182.161
※ 編輯: DRAGONLL 來自: 211.74.182.161 (10/14 13:04)
討論串 (同標題文章)
Programming 近期熱門文章
PTT數位生活區 即時熱門文章