Hi Bruce,
I pasted your code in Jabaco and tried it, but apart from the missing "Scripting"-stuff, I do not get any other error message nor infinite loops.
Could you please upload your project.
OlimilO
P.S.:
Did not register the class, BTW.
Yes, BTW how would you register a class in Jabaco?
There simply is no class named "Scripting" in the Jabaco Framework, but you could help to create one.
Believe me I brood much about the ActiveX-problem. What do you think, how many ActiveXdlls are out there?
hundreds - thousands - one million?
It's not possible to implement all of them into the Jabaco-Framework
If you are a serious programmer from a serious company, who makes money with software, and you have a special very important ActiveXdll, you could use third party software with Jabaco, to be able to work with your special ActiveXdll.
e.g. like
ComfiJ from TeamDev
for such a simple problem like listing files, just dig the internet for a equivalent Java solution and translate the code to Jabaco, we could help you to do this.
http://www.exampledepot.com/egs/java.io/GetFiles.html
|
Source code
|
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
26
27
28
29
30
31
|
File dir = new File("directoryName");
String[] children = dir.list();
if (children == null) {
// Either dir does not exist or is not a directory
} else {
for (int i=0; i<children.length; i++) {
// Get filename of file or directory
String filename = children[i];
}
}
// It is also possible to filter the list of returned files.
// This example does not return any files that start with `.'.
FilenameFilter filter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return !name.startsWith(".");
}
};
children = dir.list(filter);
// The list of files can also be retrieved as File objects
File[] files = dir.listFiles();
// This filter only returns directories
FileFilter fileFilter = new FileFilter() {
public boolean accept(File file) {
return file.isDirectory();
}
};
files = dir.listFiles(fileFilter);
|