隨筆 - 20  文章 - 7  trackbacks - 0
          <2006年2月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627281234
          567891011

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章分類

          文章檔案

          積分與排名

          • 積分 - 20428
          • 排名 - 1710

          最新評論

          <%@ page language="vb" %>
          <html>
          <head>
          <title>
          vb.net操作符號綜合范例
          </title>
          </head>
          <body>
          <%
          dim intA as integer = 10, intB as integer = 5, intC as integer = 3
          dim strA as string = "ASP.NET", strB as string = "VB.NET"
          dim blnA as boolean = true, blnB as boolean = false
          response.write(
          "條件設置:<br>")
          response.write(
          "整數條件: intA=" & intA & ",intB=" & intB & ",intC=" & intC & """<br>")
          response.write(
          "字符串條件: strA=""" & strA & """,strB=""" & strB & """<br>")
          response.write(
          "布爾代數:blnA=" & blnA & "blnB=" & blnB & "<br><b>")
          response.write(
          "括號優先級:")
          response.write(
          "(intA - intB)*intC結果為:"&((intA-intB)*intC)&"<br>")
          response.write(
          "算數操作符:")
          response.write(
          "intA-intB*intC結果為:"&(intA-intB*intC)&",<br>")
          response.write(
          "比較操作符:")
          response.write(
          "intA>intB的結果為:" &(intA>intB)& ",")
          response.write(
          "strA<>strB的結果為 " & (strA<>strB)& "<br>")
          response.write(
          "邏輯操作符:")
          response.write(
          "blnA and blnB的結果為" & (blnA and blnB) & ",")
          response.write(
          "blnA or blnB的結果為" & (blnA or blnB) & "<br>")

          %
          >
          </body>
          </html>
          posted on 2006-02-05 21:36 The Game, tomtom 閱讀(686) 評論(1)  編輯  收藏 所屬分類: die

          FeedBack:
          # re: vb.net操作符號綜合范例 2006-02-05 21:43 The Game, tomtom
          response.write里面如果要用html代碼的話要加上" "
          注意"號要成對出現  回復  更多評論
            
          主站蜘蛛池模板: 扬州市| 共和县| 天等县| 宝山区| 商洛市| 威信县| 凌海市| 六枝特区| 瑞金市| 临沂市| 大埔县| 涟源市| 漠河县| 项城市| 闵行区| 新民市| 侯马市| 清水县| 行唐县| 和田市| 灵川县| 太仆寺旗| 巴林右旗| 敦化市| 抚松县| 个旧市| 永州市| 溧水县| 巫山县| 福建省| 廊坊市| 玉树县| 黄浦区| 乐至县| 民和| 五常市| 南漳县| 安顺市| 双牌县| 安国市| 株洲县|