Happy New Year 2020 !!!
Visual Basic 6.0
Visual Basic 6.0
Slip23
Q.1) Write a VB program to accept Input from Textbox. Check whether given input is
alphabet or number. If it is alphabet check that it is in uppercase or lowercase. Display
appropriate result using msgbox. [Marks 15]
Solution
Dim n As String
Private Sub Command1_Click()
n = Text1.Text
If Asc(n) < 90 And Asc(n) > 64 Then
MsgBox "THE GIVEN CONTAIN IS UPPER CASE LATTER"
ElseIf Asc(n) < 123 And Asc(n) > 96 Then
MsgBox "THE GIVEN CONTAIN IS LOWER CASE LATTER"
ElseIf Asc(n) < 58 And Asc(n) > 47 Then
MsgBox "THE GIVEN CONTAIN IS NUMBER"
Else
MsgBox "NOT VALID INPUT"
End If
End Sub
Output
Q.2) Write a VB Program to accept the details of Professor (P_Name, P_Address,
P_Bloodgroup, P_Phoneno) Display those details on to the screen using data
report.(Don’ t use standard controls).
[Marks 25]
Solution
Same As Slip13
Happy New Year !!!
Tags:
VB 6.0