sandyrepope
26-03-2007, 02:08
I've been trying to learn some more new stuff and have a problem with:
uses "CONSOLE"
USES "FILE"
dim MyList() as string 'an array for file names
dim Num_Names as long 'holds the total number of files found
dim gFile as string 'holds the path
dim A_Loop as long 'variable for/next loop
gFile = app_sourcepath 'path
Num_Names = dir_listarray (MyList, gFile, "*.*") 'get file names
console_writeline "Number of files found: " + Num_Names 'number of filenames we got
for A_Loop = 1 to Num_Names 'a for/next loop to see what
console_writeline (MyList(A_Loop)) 'filenames we got in the array
next
console_waitkey 'keeps window open so we can read results
In the line 'console_writeline(MyList(A_Loop))' it tells me that there is a missing close parens ')' but I don't see where one is missing.
Thanks
Sandy
uses "CONSOLE"
USES "FILE"
dim MyList() as string 'an array for file names
dim Num_Names as long 'holds the total number of files found
dim gFile as string 'holds the path
dim A_Loop as long 'variable for/next loop
gFile = app_sourcepath 'path
Num_Names = dir_listarray (MyList, gFile, "*.*") 'get file names
console_writeline "Number of files found: " + Num_Names 'number of filenames we got
for A_Loop = 1 to Num_Names 'a for/next loop to see what
console_writeline (MyList(A_Loop)) 'filenames we got in the array
next
console_waitkey 'keeps window open so we can read results
In the line 'console_writeline(MyList(A_Loop))' it tells me that there is a missing close parens ')' but I don't see where one is missing.
Thanks
Sandy