Visual Basic ¾ÈÀü ¹è¿¿¡ ¾×¼¼½ºÇÒ ¼ö ÀÖ´Ù.
|
Script |
[VBArrayObj=]new VBArray(safeArray); |
HTML |
¾ø´Ù. |
- Àμö
-
- VBName : (º¯¼ö¸í)
- ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç VBArray°¡ ÇÒ´çµÇ´Â º¯¼ö À̸§ÀÌ´Ù.
- safeArray : (¾ÈÀü ¹è¿)
- ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç VBArrayÀÇ °ªÀÌ´Ù.
- Ư±â
-
VBArray °³Ã¼¿¡´Â ¼Ó¼ºÀº ¾ø´Ù.
VBArray´Â Àбâ Àü¿ëÀÌ°í Á÷Á¢ ¸¸µé ¼ö ¾ø´Ù.
safeArray Àμö¸¦ VBArray »ý¼ºÀÚ¿¡ Àü´ÞÇϱâ Àü¿¡ VBArray °ªÀ» ±¸ÇØ¾ß ÇÑ´Ù. ±×·¯·Á¸é ±âÁ¸ ActiveX³ª ´Ù¸¥ °³Ã¼¿¡¼ °ªÀ» ã¾Æ¿Í¾ß ÇÑ´Ù.
VBArray´Â ¿©·¯ Â÷¿øÀ» °¡Áú ¼ö ÀÖ´Ù. °¢ Â÷¿ø¿¡ ´ëÇÑ À妽º´Â ´Ù¸¦ ¼ö ÀÖ´Ù. dimensions ¸Þ¼µå´Â ¹è¿¿¡¼ Â÷¿øÀ» ³ªÅ¸³»´Â ¼ýÀÚ¸¦ ã¾Æ¿Â´Ù. lbound¿Í ubound ¸Þ¼µå´Â °¢ Â÷¿ø¿¡ »ç¿ëµÈ À妽º ¹üÀ§¸¦ ã¾Æ¿Â´Ù.
¼Ó¼º :
VBArray °³Ã¼¿¡´Â ¼Ó¼ºÀÌ ¾ø´Ù.
dimensions ¸Þ¼µå
IE -
¢¡ VBArrayÀÇ Â÷¿ø ¼ö¸¦ ¹ÝȯÇÑ´Ù.
¹®¹ý: VBArray.dimensions()
ÄÚµå: <SCRIPT language=VBScript>Dim vbArr(3,3)</SCRIPT><SCRIPT>document.write(vbArr.dimensions())</SCRIPT>
°á°ú:
getItem ¸Þ¼µå
IE -
¢¡ ÁöÁ¤ÇÑ À§Ä¡¿¡ ÀÖ´Â Ç׸ñÀ» ¹ÝȯÇÑ´Ù.
¹®¹ý: VBArray.getItem(dimension1[,dimension2,...],dimensionN)
ÄÚµå:<SCRIPT language=VBScript>vbArr(1,1)="bb"</SCRIPT>
<SCRIPT>document.write(vbArr.getItem(1,1))</SCRIPT>
°á°ú:
lbound ¸Þ¼µå
IE -
¢¡ Â÷¿øÀÌ ÁöÁ¤µÈ
VBArray¿¡¼ »ç¿ëÇÏ´Â ÃÖ¼Ò À妽º °ªÀ» ¹ÝȯÇÑ´Ù.
¹®¹ý: VBArray.lbound(dimension)
ÄÚµå: <SCRIPT language=VBScript>vbArr(0,0)="aa":vbArr(0,1)="ab":vbArr(1,0)="ba":vbArr(1,1)="bb"</SCRIPT>
<SCRIPT>document.write(vbArr.lbound(1))</SCRIPT>
°á°ú:
toArray ¸Þ¼µå
IE -
¢¡
VBArray¿¡¼ Javascript ¹è¿º¯¼ö·Î º¯È¯ÇÏ¿© ¹ÝȯÇÑ´Ù.
¹®¹ý: vbArray.toArray()
ÄÚµå: <SCRIPT language=VBScript>vbArr(0,0)="aa":vbArr(0,1)="ab":vbArr(1,0)="ba":vbArr(1,1)="bb"</SCRIPT>
<SCRIPT>jsArr=vbArr.toArray();document.write(jsArr)</SCRIPT>
°á°ú:
ubound ¸Þ¼µå
IE -
¢¡ Â÷¿øÀÌ ÁöÁ¤µÈ
VBArray¿¡¼ »ç¿ëÇÏ´Â ÃÖ°í À妽º °ªÀ» ¹ÝȯÇÑ´Ù.
¹®¹ý: VBArray.ubound(dimension)
ÄÚµå: <SCRIPT language=VBScript>vbArr(0,0)="aa":vbArr(0,1)="ab":vbArr(1,0)="ba":vbArr(1,1)="bb"</SCRIPT>
<SCRIPT>document.write(vbArr.ubound(1))</SCRIPT>
°á°ú: