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

listbox¦p¦ófilterÀÉ®×?

listbox¦p¦ófilterÀÉ®×?

¨Ï¥Îlistbox¨ÓÅã¥Ü¬Y¥Ø¿ý¤UªºÀÉ®×,¥Ø¿ý¤UÀɦW¦³ .filename ¸ò filename,¨S¦³ªþÀɦW,¸Ó¦p¦ó§â.filenameÂo°£¥uÅã¥Üfilename?

¦^´_ 1# herhsiu
  1. fs = Dir("D:\*")
  2. Do Until fs = ""
  3.   ListBox1.AddItem Left(fs, InStr(fs, ".") - 1)
  4.   fs = Dir
  5. Loop
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 1# herhsiu
  1. Dim fso
  2. Set fso = CreateObject("Scripting.FileSystemObject")
  3. Dim fld
  4. Dim fil
  5. Set fld = fso.GetFolder("C:\Temp")
  6. For Each fil In fld.Files
  7.   List1.AddItem Left(fil.Name, Len(fil.Name) - InStr(1, StrReverse(fil.Name), "."))
  8. Next
  9. Set fil = Nothing
  10. Set fld = Nothing
  11. Set fso = Nothing
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

¦^´_ 1# herhsiu
  1. Sub Ex()
  2.     Dim Fs, Fi
  3.     Set Fs = CreateObject("Scripting.FileSystemObject")
  4.     For Each Fi In Fs.GetFolder("D:\Test").Files
  5.         List1.AddItem Fs.GetBaseName(Fi)
  6.     Next
  7.     Set Fs = Nothing
  8. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : «H¤ß¡B¼Ý¤O¡B«i®ð¤TªÌ¨ã³Æ¡A«h¤Ñ¤U¨S¦³°µ¤£¦¨ªº¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD