Mysterious error 2004-04-28 - By Bernard Lebel
Back Hello,
I'm using a script that, at one point, has an enumerator. For each item in it, two functions are called. The strange thing is that all seem to work fine (the functions all return positive results), but after the enumerator has performed its last iteration, an error
"Object doesn't support this property or method - [line 221]"
is trhown, pointing to the enumerator statement line for( var f = new Enumerator( oFoldersColl2 ); !f.atEnd(); f.moveNext() )
Am I missing something?
Thanks Bernard
Relevant script part:
// Check if folder with files was found if( oFoldersColl2.count < 1 ) { logmessage( "No folder was collected.", siError ); } else { for( var f = new Enumerator( oFoldersColl2 ); !f.atEnd(); f.moveNext() ) { // Get current folder var oFolder = fso.getfolder( f.item() );
// Call main function var fCheck = checksequence( oFolder );
if( fCheck != 1 ) { logmessage( "For some reason, CheckSequence failed.", siError ); } else { logmessage( "CheckSequence successfully completed.", siInfo ); } } }
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ MSN Premium helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http:/ /hotmail.com/enca&HL=Market_MSNIS_Taglines
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|