The value assignment operation is +-*/or something.

Source: Internet
Author: User
<% @ Page Language = "vb" ContentType = "text/html" ResponseEncoding = "gb2312" %>
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> value assignment </title>
<Script language = "vb" runat = "server">
Sub page_load (sender as object, e as eventargs) 'declares that the trigger condition is when the page is loaded.
Dim a, s as string, q, w as double, r, t as integer
A = 2
S = 3
Q = 4
W = 5
R = 6
T = 7
A + = S' because a and s are both string data formats, the plus sign actually only indicates the connection symbol, and the result is 23.
S + = q's + q (3 + 4 = 7). In fact, everyone on Earth knows this, but why did he add two different data formats? I don't know! In fact, multiplication is also done by changing to multiplication.
Q + = w'q: The value is 4, and 4 plus 5 of w, so of course the result is 9.
W + = R' this is 11, BC knows, because both are digital.
R + = t' 13
T + = A' in fact, this is the most strange thing. I don't know why the value they add is 30. If they change to multiplication, the value is 161.
Lbl. text =
Lbl1.text = s
Lbl2.text = q
Lbl3.text = w
Lbl4.text = r
Lbl5.text = t
End sub
</Script>
</Head>
<Body>
<Asp: Label ID = "lbl" runat = "server"/> <p>
<Asp: Label ID = "lbl1" runat = "server"/> <p>
<Asp: Label ID = "lbl2" runat = "server"/> <p>
<Asp: Label ID = "lbl3" runat = "server"/> <p>
<Asp: Label ID = "lbl4" runat = "server"/> <p>
<Asp: Label ID = "lbl5" runat = "server"/> <p>
After reading the above results, I only got a conclusion that different types of values should not be disordered, And I will learn how to convert them later!
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.