![]() |
|
提问:VB2005获取文本框插入符位置
不是鼠标位置,是"I"的位置
回答:
MsgBox Text1.SelStart
返回当前操作符位置
dir比较麻烦
还是FSO吧
Private Function GetFolder(Path as string)
Doevents
dim FSO as new FileSystemObject
Set gFile = FSO.GetFolder(Path).Files
For Each sFile In gFile
Debug.Print sFile
Next
Set gFolder = FSO.GetFolder(Path).SubFolders
For Each sFolder In gFolder
GetFolder sFolder
Next
End Function
GetFolder "C:\"
给出根目录,历遍根目录文件!