Home > Software engineering >  Advice on how to write the VB
Advice on how to write the VB

Time:09-30

Advice on how to write the VB:
A certification process is added to the getName
The Name may not be empty
Add a certification process to getGrade
Grade must be digital
Grade must be greater than or equal to 0
Grade must be less than or equal to 100

CodePudding user response:

Add 2 textbox, name the name and grade respectively, add a command
Double-click the command, in the process to add the following code

' 'the name of the certification
If len (name text)=0 then
Msgbox "the name cannot be empty!"
The exit sub
The else
Msgbox "name=" & amp; Name. The text
Endif
"' grade certification
If isnumeric (grade. The text) then
If val (grade. The text) & gt;=0 and val (grade. The text) & lt; Then=100
Msgbox "grade=" & amp; Grade. The text
The else
Msgbox "grade must be between 0 ~ 100!"
Endif
The else
Msgbox "grade must be numeric!"
Endif

Probably just like that... You look at change

CodePudding user response:

Suggest the building away from the circle "programming",

CodePudding user response:

The building Lord said, I really understand not.

CodePudding user response:

Expression is not clear...

CodePudding user response:

Is the database?????????????????
  • Related