If you have not defined the ForWriting constant, your code will be
interpreted as:

Set objFile = objFSO.OpenTextFile(fileLocation, [empty/undefined], False)

Try adding:

Const ForWriting = 2

Or just use 2 instead of ForWriting.

Ray at work 

> -----Original Message-----
> From: Andy and Kim Mills [mailto:[EMAIL PROTECTED] 

> I can't seem to figure out what is wrong with this statement.  
> 
>    *Set objFile = objFSO.OpenTextFile(fileLocation, ForWriting, False)
> 
> I get an Invalid Procedure Call or Argument on the line I 
> marked with an *. 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to