Re: aspfaq article

From: Aaron Bertrand [MVP] (aaron_at_TRASHaspfaq.com)
Date: 03/04/04


Date: Thu, 4 Mar 2004 11:14:46 -0500


> building select I confronted with error on my code. I turned ON option
> explicit on the getrowsmove.asp so I was forced to dim the i, link, s
> variables and it took lot of time to figure because the option explicit
did
> not throw the error.

WHAT error? On WHAT line?

> Secondly, How do I remove an entire line while using scripting object
> FILESYSTEMOBJECT.

You can't. You would have to build a new string by reading the file and
leaving out the offending line, then overwrite the text file. For a
semi-tutorial on FSO, see http://www.aspfaq.com/2039

-- 
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


Relevant Pages

  • Re: option explicit
    ... Explicit", it might be moments of debugging time instead of hours. ... And one more reason I like it is that when I declare an object explicitly: ... dim myWksThatShowsTheSummary as Worksheet ... I can type mywks and hit ctrl space bar to have the VBE autocomplete (or show me ...
    (microsoft.public.excel.misc)
  • Re: VBscript parsing in IIS
    ... Explicit on) for errors. ... Dim A as String = b ... Dim A as String ... > On some servers I get parsing error on some I don't ...
    (microsoft.public.dotnet.framework.aspnet)
  • Either BOF or EOF is True error makes absolutely no sense
    ... When i put an explicit value in the sql statement below as ... <% dim rs2,strSQLd2,ii ... rs2.Open strSQLd2, dbc ...
    (microsoft.public.inetserver.asp.general)
  • object lifetime
    ... dim o as object ... end sub ... goes out of scope, or i still need explicit "set o=nothing"? ...
    (microsoft.public.vb.general.discussion)
  • Re: Interesting Results In VB.Net
    ... hate the "Dim". ... In the current VB there is with Strict and Explicit on not ...
    (microsoft.public.dotnet.languages.vb)