Home > Net >  Vb.net call greater than or equal to write, please expert guidance, very grateful!
Vb.net call greater than or equal to write, please expert guidance, very grateful!

Time:10-21

Vb.net page I call tags & lt; %=session (" score ") % & gt; According to the following numerical;
The session (" score ")=formatnumber ((session (" 1 ") + session (" 2 ") + session (" 3 ") + session (" 4 ") + session (" 5 ") + session (" 6 ") + session (" 7 "))/7, 2)
Above score calculation and call the display is normal, but outside the normal call, I want to separate with all the other labels call more than a fraction of the prompt show information, tooltips are according to the score limit is as follows:

I call above indicates the total number of values, when the total score is less than 2.0 shows; Separate calls prompt, "failed"; Don't display scores,
When a score is equal to 2.0 invoke alone, "pass" don't display scores,
When the score is more than 2.0 points less than or equal to 2.4; Separate calls prompt, "good" don't display scores,
When a score is greater than or equal to 2.5 above; Separate calls prompt, "very good" don't display scores,

I am a novice, hope which expert to help write down the code above, I can call display correctly, grateful!

CodePudding user response:

If the else or iif function can be,

CodePudding user response:

reference 1st floor caozhy response:
if can, or else the iif function

Can be meticulous and help write, thank you, VB.net I basic don't understand

CodePudding user response:

reference software engineer 7 on the second floor response:
Quote: refer to 1st floor caozhy response:
if can, or else the iif function

Can be meticulous and help write, thank you, VB.net I basic don't understand ah


Don't understand, that really can't help you, you or hire someone to help you make it,

CodePudding user response:

reference software engineers, 4/f, 7 response:
Quote: refer to the third floor caozhy response:
Quote: refer to the second floor software engineer 7 response:

Quote: refer to 1st floor caozhy response:
if can, or else the iif function

Can be meticulous and help write, thank you, VB.net I basic don't understand ah


Don't understand, that really can't help you, you or hire someone to help you get right,

Oh, that hired you can, please give a contact


You can go to "pig eight quit nets"

CodePudding user response:

If the session=2.0
The begin
Msgbox (" pass ")
End
Else if session> 2.0 the and session<=2.4
The begin
Msgbox (" good ")
End
Else if session>=2.5
The begin
Msgbox (" good ")
End
'msgbox (" XXX ") message

CodePudding user response:

If the session=2.0 Then
Msgbox (" pass ")
End
If session> 2.0 the and session<=2.4 Then
Msgbox (" good ")
End
If session>=2.5 Then
Msgbox (" good ")
End
'msgbox (" XXX ") message

CodePudding user response:

If session<2.0 Then
Msgbox (" fail ")
Else if the session=2.0 Then
Msgbox (" pass ")
Else if session> 2.0 the and session<=2.4 Then
Msgbox (" good ")

Else if session>=2.5 Then
Msgbox (" good ")
end if

CodePudding user response:

<%
Dim RoleS=New String () {" pass ", "excellent", "excellent"}
Dim JugNum=CDbl (Session (" score "))
Dim lbCaption=""
The Select Case JugNum
Case=2
LbCaption=RoleS (0)
Case 2 To 2.4
LbCaption=RoleS (1)
Case & gt;=20.5
LbCaption=RoleS (2)
In Case the Else
LbCaption=Session (" score ")
End the Select
Response. Write (lbCaption)
% & gt;

========the above code duplication, replace & lt; %=session (" score ") % & gt; ; Is the effect of the original poster need,
  • Related