Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

help~my trigonometry button are not working

$
0
0
Hi i did create tan,sin,cos button by writing this code,somehow when i want to press,the equal button doesnt show the answer:

Private Sub Trigonemetry_Click(Index As Integer)
scitype = Trigonemetry(Index).Caption
Select Case (scitype)
Case "sin"
lblDisplay.Caption = (lblDisplay.Caption * 3.14) / 180
lblDisplay.Caption = Math.Sin(Val(lblDisplay.Caption))
count1 = 0
Case "cos"
lblDisplay.Caption = (lblDisplay.Caption * 3.14) / 180
lblDisplay.Caption = Math.Cos(Val(lblDisplay.Caption))
count1 = 0
Case "tan"
lblDisplay.Caption = (lblDisplay.Caption * 3.14) / 180
lblDisplay.Caption = Math.Tan(Val(lblDisplay.Caption))
count1 = 0
End Select
End Sub

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>