|
   
- ตั้งใจ
- 99 ครั้ง
- เงิน
- 39 บาท
- หัวเจาะ
- 13 ครั้ง
- LV
- 3 Level
- ระดับการใช้งาน
- 50
- เพศ
- ชาย
- ออนไลน์
- 15 ชัวโมง
|
ขอโทษครับ ส่งผิดที่ ช่วยย้ายทีน้ะครับ
เพิ่มเติมแนวคิดครับ
'ถอดเอามาแต่ชื่อไฟล์
Public Function NameWithoutPath(ByVal WithPath As String)
Dim sWithoutPath As String
Dim iLen As Integer
Dim iWhere As Integer
sWithoutPath = WithPath
Do Until InStr(sWithoutPath, "\") = 0
iLen = Len(sWithoutPath)
iWhere = InStr(sWithoutPath, "\")
sWithoutPath = Microsoft.VisualBasic.Right(sWithoutPath, iLen - iWhere)
Loop
Return sWithoutPath
'ข้อบกพร่องคือ จะเหลือไฟล์เหมือนที่อยู่ล่างสุด ไม่ได้ตรวจสอบลำดับที่จะลบไฟล์ที่เหมือน
End Function |
|
Good exam better than teaching |
|