filelist from a folder

For questions about using Classic.

Post » Tue Sep 29, 2009 8:22 am

Thanks a lot!
That's what i was looking for.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Tue Feb 23, 2010 9:48 pm

I have another problem with listing files from a folder.

I have 6 files in example folder: file1, file2, file3, file4, file5 and file6
I'd like to list only 3 of them (becaluse player has to complete them first in order to reveal rest). So the list should fool like this:
[code:1im6tcb1]
file1
file2
file3
---
---
---
[/code:1im6tcb1]

Could You modify your example to work like this?

(I've tried to change event "for each file in XXX" to "repeat 3 times" but it doesn't select files properly.)
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Sat Feb 27, 2010 7:26 am

Its been a while since I tried to work on the program I needed this for but thought I'd ask before going back to it, anyone know of a way to tell if its a folder instead of a file? I wanted the program to be able to list files, go inside of folders and list those as well.

This just came to me as I was typing...
I could use the If Folder Exists -> Change Directory and iterate through all the files listed to check them.

But does anyone know of a quicker way...say if a folder actually has an extension?
B
2
S
2
G
3
Posts: 114
Reputation: 1,553

Post » Tue Mar 02, 2010 3:29 am

I just used a modified version of the example I provided a while back to do what you want:

Limit Files Shown Thingy

It's a fairly simple change. Hope this helps. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sat Mar 13, 2010 8:36 am

I've just looked into it. It's a different example...
In this one mouse cursor is placed on randomly selected square.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Tue Mar 16, 2010 2:52 am

Whoops, sorry about that. :P I've edited the post to have the proper link.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Thu Mar 18, 2010 2:15 pm

It works. Thanks again.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests