|
|
|
|
À²¸® / 2002-02-25 / ¿ÀÈÄ 10:39:24 / 211.49.58.177
Á¶È¸¼ö : 145
|
[Áú¹®] Ȥ½Ã³ª Çؼ....
|
±Ý¾×¿¡ ÄÞ¸¶ Âï¾î¼ Ãâ·ÂÇÏ´Â ºÎºÐÀ» Á÷Á¢ ¸¸µå¼Åµµ µË´Ï´Ù¸¸, ASP ÇÔ¼öÁß¿¡ ÀÌ¹Ì ÀÌ¿Í °°Àº °É Áö¿øÇØ ÁÖ´Â ÇÔ¼ö°¡ Á¸ÀçÇÕ´Ï´Ù.
¾Æ·¡ÀÇ ±ÛÀ» È®ÀÎÇØ º¸¼¼¿ä.
http://203.255.3.191/dream/dreambbs/mess.asp?P_ID=qna&P_Index=4033
µµ¿òÀÌ µÇ½Ã±æ...
> ±Ý¾×À» Ãâ·ÂÇϴ â¿¡¼ Çü½ÄÀ» ¸ÂÃß¾î ÁÖ°íÀÚ ÇÕ´Ï´Ù.
>
> function MoneyWrite(MValue) '½ÇÀԱݾ×(±â³³ºÎ)
> dim nfor, mTemp
>
> mTemp = ""
>
> for nFor = Len(MValue) to 2 step -1
> if ( nfor mod 3 ) = 0 then
> mTemp = Mid(MValue, nFor - 1, 1) & ","
> & mTemp
> else
> if Len(MValue) = nFor then
> mTemp = mTemp & Mid(MValue, nFor - 1, 1)
>
>
> mTemp = Mid(MValue, nFor - 1, 1) & mTemp
> end if
> next
> MoneyWrite = mtemp & " ¿ø"
>
> end function
>
> ÀÌ·¸°Ô ÇÔ¼ö¸¦ ¼±¾ðÇϱ¸¿ä.
>
> ¾Æ·¡ Ãâ·ÂºÎºÐ¿¡ ÀÌ·¸°Ô Çϸé
> < td height="44" bgcolor="#EEF1E2" width="76" >
> <%=MoneyWrite(Rs(2))%>< /td >
>
> °ªÀÌ 12,676, ¿ø ÀÌ·¸°Ô Ãâ·ÂÀÌ µË´Ï´Ù.
> ·ÎÁ÷ÀÌ Àß ¸ø ¼¹´Â°¡ ?
> ¿ìÀ× ¾î¶»°Ô ÇÏ¸é µÇ³ª¿ä ?
> Á¶¾ð Á» ºÎŹÇÕ´Ï´Ù.
>
>
> îñ) ÇÒÀηá -----> 126766
> úÞ) ÇÒÀηá -----> 12,676, ¿ø
----------------------------------------------------------- |
|
|
|