Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[SOLVED] Silly question #362385
03/07/11 21:15
03/07/11 21:15
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
I have a question about txt_for_dir() that may seem a bit silly. I know if i use txt_for_dir(my_text,"*.bmp") it will put the names of every .bmp file in the game folder into my_text.

How do i get it to look into sub-folders? IE if i have a folder underneath the game folder called graphics, how would i get txt_for_dir() to list all .bmp in the graphics directory?

Last edited by Caermundh; 03/08/11 14:57.
Re: Silly question [Re: Caermundh] #362403
03/07/11 22:10
03/07/11 22:10
Joined: Nov 2010
Posts: 96
Vienna
S
Schubido Offline
Junior Member
Schubido  Offline
Junior Member
S

Joined: Nov 2010
Posts: 96
Vienna
Should be txt_for_dir(my_text, "graphics\\*.bmp")

Re: Silly question [Re: Schubido] #362483
03/08/11 14:57
03/08/11 14:57
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
yep...that did it, Schubido. I always forget I have to use an escape character to get a backslash in a string ("\\" instead of "\")

Thanks!


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1