Hi Bruce,
I've "tried" to implement Dir and GetAttr you can find it in the module FileSystem the same as in VB.
for updating your Framework: in Jabaco click the menu item "?"->"Get the latest snapshot".
But ... you can not use it like you did it here, however thanks to your hint, until now.
Do you want to implement it? it's possible ...
in Java you simply need java#io#File.listFiles() which delivers an array of files
Are you already a Jabaco-Framework developer?
have you seen the tutorial:
Develop the Jabaco Framework
a thought where you could start from (untested)
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Dim myDir As java#io#File
Dim myDirIndex As Integer
Dim myDirFiles() As java#io#File
Public Sub Command1_Click()
Dim A As String
A = Dir("C:", vbDirectory)
Do While A <> ""
Debug.Print A '& " " & GetAttr("C:" & A)
A = Dir
Loop
End Sub
Private Function Dir() As String
If myDirIndex <= UBound(myDirFiles) Then
Dir = myDirFiles(myDirIndex).getName
myDirIndex = myDirIndex + 1
Else
myDirIndex = 0
Dir = ""
End If
End Function
Private Function Dir(PathName As String, attr As VbFileAttribute) As String
myDir = New java#io#File(PathName)
Dir = myDir.getPath
myDirFiles = myDir.listFiles
End Function
|
OlimilO