vb加减乘除if语句怎么打(vb多条件if函数的使用方法)

vb加减乘除if语句怎么打(vb多条件if函数的使用方法)

首页维修大全综合更新时间:2024-12-03 02:44:07

vb加减乘除if语句怎么打

Private Sub Option1_Click(Index As Integer) If Index = 0 Then Text3 = Val(Text1) + Val(Text2) If Index = 1 Then Text3 = Val(Text1) - Val(Text2) If Index = 2 Then Text3 = Val(Text1) * Val(Text2) If Index = 3 Then  If Val(Text2) <> 0 Then Text3 = Val(Text1) / Val(Text2) End If End Sub

大家还看了
也许喜欢
更多栏目

© 2021 3dmxku.com,All Rights Reserved.