Not being a MapBasic programmer, I don't know how to do it in MB, but with
C, we use a findfirst () and a findnext() to get a directory listing that
matches a filespec pattern.
simply stated:
struct ffblk ffblk ;
int done ;
done = findfirst ("*.*", &ffblk, 0) ; // replace *.* with your specific
filespec
while (!done) {
printf ("\n%s", ffblk.ff_name) ;
UserFunction (ffblk.ff_name) ; // call your function that does
whatever it does to the file
done = findnext (&ffblk) ;
}
Does MapBasic have something analogous to C's findfrist()/findnext()
functions?
Wade Cothran
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]