|
-
Dec 28th, 2002, 10:31 PM
#1
Thread Starter
Hyperactive Member
If Statement
I have a textBox1 in my C# project. How can i use the IF statement if the value of textBox1 is greater than or equal to 75, the remarks is "Passed" else "Failed".
I used:
int a;
string remarks;
a = int.Parse(textBox1.Text);
If (a>=75) then
remarks="Passed"
Else
remarks="Failed"
End If
Kindly correct this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|