´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • 俵ÀÌ / 2000-07-04 / ¿ÀÈÄ 7:13:59 / 203.255.3.190
    Á¶È¸¼ö : 114
    [Áú¹®] Á¶°ÇÁ־ ·¹ÄÚµå¼Â ¹è¿­·Î ¿­±â ¹®Á¦
    > ---- ¿¡·¯ ¸Þ½ÃÁö ----
    > end °¡ ÇÊ¿äÇÏ´Ù°í ³ª¿Àµç°¡, ±¸¹®ÀÌ À߸øµÆ´Ù°í ³ª¿À³×¿ä.
    >
    > ---- ¿¡·¯¶óÀÎÀÇ ÄÚµå ----
    > <%
    >
    >
    > set db=server.createobject("ADODB.connection")
    > db.open(.....)
    > SQL2 = "SELECT * from ratio_ratio "
    >
    >
    > Set Rs2 = Server.CreateObject("ADODB.Recordset")
    >
    > Rs2.Open SQL2,db
    >
    > %>
    > <%if rs2.bof then ratio=0%><%=ratio%><%elseif not rs2.bof then ratio=rs2
    > (0).Fields("ratio") %><%=ratio%>
    >
    > <%elseif isnull(rs2(1)) then ratio=0%><%=ratio%><%elseif <>isnull(rs2(1))
    > then ratio=rs2(1).Fields("ratio") f%><%=ratio%>
    >
    > <%elseif isnull(rs2(2)) then ratio=0%><%=ratio%><%elseif <>isnull(rs2(2))
    > then ratio=rs2(2).Fields("ratio") %><%=ratio%>
    >
    > <%elseif isnull(rs2(3)) then ratio=0%><%=ratio%><%elseif <>isnull(rs2(3))
    > then ratio=rs2(3).Fields("ratio") %><%=ratio%>
    >
    > <%elseif isnull(rs2(4)) then ratio=0%><%=ratio%><%elseif <> isnull(rs2
    > (4)) then ratio=rs2(4).Fields("ratio")f%><%=ratio%>
    >
    > <%elseif isnull(rs2(5)) then ratio=0%><%=ratio%><%elseif <>isnull(rs2(5))
    > then ratio=rs2(5).Fields("ratio") %><%=ratio%>
    >
    > <% end if %>
    > ---- Áú¹® ³»¿ë ----
    > ÀÌ ·ÎÁ÷Àº ratio¶ó´Â Ä÷³À» Çʵå Çϳª¾¿ ¿ÀÇÂÇÏ´Â ºÎºÐÀÔ´Ï´Ù.
    > ºä¿¡¼­ ²ø¾î¿À´Â ºÎºÐÀ̱⠶§¹®¿¡ Çʵ尡 ¾øÀ» ¼öµµ ÀÖ°í, ÃÖ´ë 5°³ÀÖ½À
    > ´Ï´Ù. ±×·¡¼­, °¢°¢¿¡ ´ëÇؼ­ Á¶°ÇÀ» Á־ ²ø¾î¿À·Á°í Çϴµ¥, Àß ¾ÈµÇ
    > ³×¿ä.
    >
    -----------------------------------------------------------

    ¹Ý¾ß´ÔÀÌ °è¼Ó ÀÌ ¹®Á¦·Î °í»ýÇÏ½Ã´Â°Í °°Àºµ¥....

    Àúµµ Àß ¸ð¸£±â ¶§¹®¿¡ Á¤È®ÇÑ ´äº¯À» µå¸± ¼ö°¡ ¾ø³×¿ä...

    ÀÏ´Ü ÀÇ ±¸¹®¿¡¼­ ÀǽɵǴ ºÎºÐÀº...

    <%elseif isnull(rs2(1)) then ratio=0%><%=ratio%><%elseif <>isnull(rs2(1))
    then ratio=rs2(1).Fields("ratio") f%><%=ratio%>

    ¿©±â¼­ rs2(1).Fields("ratio") ´ÙÀ½¿¡ ÀÖ´Â f´Â ¹«¾ùÀΰ¡¿ä?


    À½... ±×¸®°í.... if then elseif ~ end if±¸¹®¿¡¼­

    <%if rs2.bof then ratio=0%>
    <%=ratio%>
    <%elseif not rs2.bof then ratio=rs2(0).Fields("ratio")%>
    <%=ratio%>
    <%elseif ~~

    ÀÌ·¸°Ô µÇ¾î Àִµ¥¿ä... rs2.bofÀ̰ųª rs2.bof°¡ ¾Æ´Ï°Å³ª

    ÀÌ¿ÜÀÇ elseif¹®À» Á¢±Ù µÇÁö ¾Ê´Â°Í ¾Æ´Ñ°¡¿ä?

    Çѹø »ìÆì º¸¼¼¿ä... ±×·³...
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :