4D SYSTEMS FORUM

Register New Posts
 
 
 


Reply
 
Author Comment
 
samit_ray

Registered: 11/05/12
Posts: 52
Reply with quote  #1 
In SGC mode we are able to get a directory listing using the extended commands for uVGAII,
However since then I have ported most of my project to GFX as there is a big performance improvement (may be its just my percecption)

I have not been able to locate any call in the internal guide to get file names for a wild card search. file_Dir(*.*) returns a count of matching files but not the actual file names.

The file_Dir() talks of streaming the file name, but how it is to be done is not very evident.

Is there any thread or example somewhere?
ipaq3115

Avatar / Picture

Registered: 12/11/11
Posts: 139
Reply with quote  #2 
Check out FAT16dir2.4dg in the picaso examples folder. 

Shows something like this. 

Quote:
var filenames[100];
to(filenames); file_Dir("*.*");
print([STR] filenames);


That puts all the file names into a string. Then you can use all of the string functions on it.
samit_ray

Registered: 11/05/12
Posts: 52
Reply with quote  #3 
dart!!! did not check through the samples (on my disk)
will try it later, got a few other issues (other thread)
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Powered by Website Toolbox - Create a Website Forum Hosting, Guestbook Hosting, or Website Chat Room for your website.