Ifthenstatement visual basic 6.0

1 answer

Answer

1245084

2026-10-15 06:40

+ Follow

Like most languages Visual basic also uses the 'If' keyWord to implement the decision control statement. The syntax of 'If' statement is as follow

If <condition> Then

Statements ...........

.............................

End If

For Example:

Private Sub Form1_click()

Dim marks As Integer

marks= InputBox("Enter Marks : ")

If marks >60 Then

MsgBox "First Devision"

End If

End Sub

ReportLike(0)ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.