ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°Ý¦bµ{¦¡¤¤­«·s«Å§iÅܼơA¥i«ç»ò¥Î¡H

[µo°Ý] ½Ð°Ý¦bµ{¦¡¤¤­«·s«Å§iÅܼơA¥i«ç»ò¥Î¡H

½Ð°Ý¤@¤U¡A§Ú¦bµ{¦¡¤@¶}©l®É¦³¥ý«Å§iÅܼơA¦ý¦bµ{¦¡¤¤·Q­«·s«Å§iªº¸Ü¡A­n«ç»ò¼g¡H

Dim TestItem as variant
Dim Str1 as string

Str1="aa-bb-cc"
TestItem= Split(Str1, "-")

­Y¦¹®É­n­«·s«Å TestItem ¬° Variant ­n«ç»ò¼g¡H

Dim ¬OµLªk­«·s«Å§iªº
§A·Q²MªÅ¥Lªº¸Ü¥Î TestItem = Empty

TOP

­ì¨Ó¬O³o¼Ë ~~~ §Ú¥H¬°¦³ redim preserve ªº»yªk¡A¤]¥i¥H­«·s dim¡A¦nªº ¤F¸Ñ¡AÁÂÁ¡I

TOP

¦^´_ 3# C.F


   
Dim TestItem as variant
Dim Str1 as string

Str1="aa-bb-cc"
TestItem= Split(Str1, "-")

­Y¦¹®É­n­«·s«Å TestItem ¬° Variant ­n«ç»ò¼g¡H

TestItem ÅܼƤw«Å§i¬° Variant (¥i¬°¥ô¦ó«¬ºA),¬°¦óÁÙ­n­«·s«Å TestItem ¬° Variant
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

§Ú­è¸Õ¤F¡A±z©Ò»¡ªº TestItem=Empty ´N²Å¦X§Úªº»Ý¨D¤F¡AÁÂÁ ~~

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD