Re: Need help with a question.




"Trev" wrote:

How come these errors only appear when I use Sub { } ?

For one thing, you should use lowercase: sub { }

open (BOO, "<blah2.txt");
@lines=<TMP>;

You open BOO, but use TMP (which is not opened).

And, you don't check to see of BOO can be opened.

Fix these things, then it should run. However, I doubt it will do what you
want it to do...



.



Relevant Pages

  • Re: Change all from upper case to lower case???
    ... Oops - You want the ProperCase one, not the lowercase one - apologies ... > Sub CAPS() ... > For Each cell In ActiveSheet.UsedRange ... > It's easier to beg forgiveness than ask permission :-) ...
    (microsoft.public.excel.misc)
  • Re: Need help with a question.
    ... you should use lowercase: sub ... but use TMP. ... Fix these things, then it should run. ...
    (comp.lang.perl.misc)
  • Re: Exit Sub not exiting
    ... Hmm not sure how reimporting the code would fix it. ... error might stop with only an Exit Sub, ... Sub at the end to cmdDataLoad_Click and go through the whole thing ...
    (microsoft.public.excel.programming)
  • [PATCH] update checkpatch.pl to version 0.11
    ... lets fix those whitespace errors spotted by checkpatch...] ... add a summary to the bottom of the main report ... sub top_of_kernel_tree { ... # Pre-scan the patch looking for any __setup documentation. ...
    (Linux-Kernel)
  • RE: Browse window in form.
    ... Is there a way to fix these? ... Change the line Function TestIt() to the following: ... Private Sub Command2_Click ... Do I just copy and paste the code into my VBA window? ...
    (microsoft.public.access.forms)