¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > ¹®ÀÚ °ü·Ã ÇÔ¼ö

µî·ÏÀÏ : 2017-07-04 17:35 Á¶È¸¼ö : 52,989

ÀÌ ÆäÀÌÁö ¿¡¼­´Â À¯¿ëÇÏ°Ô »ç¿ëÇÏ´Â ¹®ÀÚ°ü·Ã ÇÔ¼ö¿¡ ´ëÇؼ­ ¾Æ´Â ¸¸Å­ Á¤¸®ÇØ º¸°íÀÚ ÇÕ´Ï´Ù.
 
  8.3.1 Lcase(), Ucase()
  ¹®ÀÚ¿­À» ´ë¼Ò¹®ÀÚ·Î ¹Ù²Ù¾î ¸®ÅÏÇØ ÁÖ´Â ÇÔ¼ö ÀÔ´Ï´Ù.

 response.write ucase("ankyu")&"<BR>"
response.write Lcase("ANKYU")


ucase : ´ë¹®ÀÚ·Î ¹Ù²Ù¾î ÁØ´Ù.
lcase : ¼Ò¹®ÀÚ·Î ¹Ù²Ù¾î ÁØ´Ù.

  8.3.2. instr()
  instr ÇÔ¼ö´Â ¹®ÀÚ¿­ÀÇ À§Ä¡¸¦ ¼öÄ¡·Î ¸®ÅÏÇØ ÁÝ´Ï´Ù.

ankyu="¾È±Ô´Â ¸ÚÀïÀÌ ÀÔ´Ï´Ù."
response.write instr(ankyu,"¸ÚÀïÀÌ")&"<br>"
response.write instr(ankyu,"Ã־ȱÔ")&"<br>"


À§ÀÇ ¿¹Á¦ ¿¡¼­´Â "¸ÚÀïÀÌ"¶õ ´Ü¾î´Â Á¸ÀçÇϱ⠶§¹®¿¡ ¸ÚÀïÀÌ À§Ä¡ÀÎ 5¸¦ ¸®ÅÏÇÏ°í, "Ã־ȱÔ"¶õ ´Ü¾î´Â
Á¸ÀçÇÏÁö ¾Ê±â ¶§¹®¿¡ 0À» ¸®ÅÏÇÏ°Ô µÉ°ÍÀÔ´Ï´Ù.

  8.3.3. Left(),Right(),Mid()
  ¹®ÀÚ¿­ÀÇ ¿ÞÂÊ,¿À¸¥ÂÊ,°¡¿îµ¥ ¿¡¼­ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù.

ankyu="¾È±Ô´Â ¸ÚÀïÀÌ ÀÔ´Ï´Ù."
response.write left(ankyu,5)&"<br>"
response.write right(ankyu,5)&"<br>"
response.write mid(ankyu,3,4)&"<br>"


  ¿ÞÂÊ¿¡¼­ 5°³ "¾È±Ô´Â ¸Ú"
  ¿À¸¥ÂÊ¿¡¼­ 5°³ " ÀÔ´Ï´Ù."
  °¡¿îµ¥¿¡ 3¹ø°¿¡¼­ 4°³ÀÇ ¹®ÀÚ "´Â ¸ÚÀï"
 
  8.3.4. trim(),Ltrim(),Rtrim()
  ¾çÂÊ,¿ÞÂÊ,¿À¸¥ÂÊ ¹®ÀÚ¿­ÀÇ °ø¹éÀ» ¸ðµÎ »èÁ¦ÇÕ´Ï´Ù.
 
  8.3.5. Len()
  ¹®ÀÚ¿­ÀÇ ±æÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.

  8.3.6. Replace()
  Replace ÇÔ¼ö´Â ¹®ÀÚ¿­ÀÇ Æ¯Á¤ ¹®ÀÚ¸¦ ã¾Æ¼­ ´Ù¸¥ ¹®ÀÚ·Î ¹Ù²Ù¾î ÁÝ´Ï´Ù.

  ankyu="¾È±Ô´Â ¸ÚÀïÀÌ ÀÔ´Ï´Ù."
  response.write replace(ankyu,"¸ÚÀïÀÌ","¸ø³­ÀÌ")


À§ÀÇ ¿¹Á¦¸¦ ½ÇÇàÇϸé "¾È±Ô´Â ¸ø³­ÀÌ ÀÔ´Ï´Ù."·Î Ãâ·ÂµÊÀ» ¾Ë¼ö ÀÖ½À´Ï´Ù.

  8.3.7. split()
  split ÇÔ¼ö´Â ƯÁ¤ ¹®ÀÚ¿­À» ±âÁØÀ¸·Î ¹®ÀÚ¿­À» ³ª´©¾î ÁÝ´Ï´Ù.

ankyu="¾È±Ô´Â/¸ÚÀïÀÌ/ÀÔ´Ï´Ù."
ankyu=split(ankyu,"/")
response.write ankyu(0)&"<br>"
response.write ankyu(1)&"<br>"
response.write ankyu(2)&"<br>"

 
  À§ÀÇ ¿¹Á¦¿¡¼­ "/"À» ±âÁØÀ¸·Î ¹®ÀÚ¿­À» ºÐ¸®Çß½À´Ï´Ù.
  split() ÇÔ¼ö¸¦ ÀÌ¿ëÇؼ­ ¹®ÀÚ¿­À» ºÐ¸®ÇÏ¸é ¹è¿­ Çü½ÄÀ¸·Î µé¾î°¡°Ô µÇ´Âµ¥¿ä.
  ankyu(0)="¾È±Ô´Â"
  ankyu(1)="¸ÚÀïÀÌ"
  ankyu(2)="ÀÔ´Ï´Ù."
 
  ÀÌ·¸°Ô µé¾î°¡°Ô µË´Ï´Ù.
 
  8.3.8. Join()
 
¹è¿­¿¡ Æ÷ÇԵǾî ÀÖ´Â ¿©·¯ ÇÏÀ§ ¹®ÀÚ¿­À» °áÇÕÇÏ¿© ÇϳªÀÇ ¹®ÀÚ¿­À» ¹ÝȯÇÕ´Ï´Ù.
split ÇÔ¼ö¿Í ¹Ý´ëµÇ´Â ÇÔ¼ö¶ó°í »ý°¢ÇÏ½Ã¸é µË´Ï´Ù.

^^;
Á÷Á¢ Å×½ºÆ® ÇØ º¸¼¼¿ä...
¾Æ·¡´Â ¼Ò½º ÀÔ´Ï´Ù.

<%
Dim test(3)
test(0) = "Choi"
test(1) = "An"
test(2) = "Kyu"
test1 = Join(test, "/")
Response.Write test1 & "<BR>"
test2 = Join(test)
Response.Write test2 & "<BR>" %>
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.