Re: Reading file names and Searching for text



On Mar 3, 1:25 pm, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
"Codeblack" <Codebl...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message

news:3E0AC0F3-4C83-4430-BFEC-4507A01B2A91@xxxxxxxxxxxxxxxx

Did the modification but getting the below error

"Microsoft VBScript runtime error: Invalid procedure call or argument".

The error is pointing at the line

Set objFile = objFSO.OpenTextFile(filename, ForReading)

Is it that the argument "filename" which we are passing is wrong?

If you don't have an IDE (an Interactive Development Environment, i.e. a
code editor that lets you step through the code and monitor your variables)
then you need to add your own diagnostics, e.g. like so:

wscript.echo "Filename=" & filename & "xxx"
Set objFile = objFSO.OpenTextFile(filename, ForReading)

You will probably see that the variable "filename" does not have a value
assigned to it.

It seems this thread is somewhat damaged. Depending on which forum you
use (Outlook Express, web Interface), some of your posts and some of
mine are missing. Here is what I wrote a few hours ago:
================
Sorry, your code fragment is too short to make any useful suggestions.
And
what do you mean with the comment "Changed his"? "His" what?

.



Relevant Pages

  • Wow! I now how to integrate tortoiseSVN with Delphi IDE now!
    ... compared with version control tools integrated with DELPHI ... IDE, it allows you handle other file types too, not only the files included ... understood it is similiar to VisualAssit for visual studio), I found cnPack, ... the ability which allows you to maximize the code editor in the IDE is ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Which is a wiser choice for an IT professional to take up, Java or .NET?
    ... mind the code editor is the single most important thing in the IDE. ... better in Eclipse than in VS.NET, ... tweak is the memory settings, to give the JVM plenty of memory - ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Usinig 2 monitors: IDE problem on secondary monitor
    ... I do not know why, but when I shift development window (ide) from the main monitor to the secondary monitor, the mouse right click does not pop up any menu, I needed for some Copy & Paste operation. ... Any time the screen coordinates go negative, ...
    (microsoft.public.vb.general.discussion)
  • Re: D2006 Tool Palette So Inferior
    ... themselves in the code editor and thus aren't apt to complain about ... code editing and other IDE features trump IDE preferences. ... When is the Delphi group going to improve this terrible weakness to the ... it is sad that the D2006 tool palette has to use ...
    (borland.public.delphi.non-technical)
  • Re: Totaly toasted :(
    ... My old eyes can't zero in on the small fonts on a 36" LCD TV that was my monitor. ... Anyone hear of a brand called 'Acer'? ... I have a USB external IDE caddy just for testing/copying IDE drives. ...
    (alt.comp.hardware.pc-homebuilt)