代码编写:
Private Sub Command1_click()
Dim w as LongDim s as Long
Dim y as Long
w=Val(Text1.Text)
s=w-800
Select case s
Case is<=500
y=s*5/100
Case is<=2000
y=s*10/100
Case is<=5000
y=s*15/100
Case is<=20000
y=s*20/100
Case is<=40000
y=s*25/100
Case is<=6000
y=s*30/100
Case is<=8000
y=s*35/100
Case is<=100000
y=s*40/100
Case Else