comparison vs assignment of '='

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Beat M?ller (henniez33_at_yahoo.de)
Date: 08/18/04


Date: 18 Aug 2004 13:30:51 -0700

hi,

I've got this line of code in my script:

-----
if (Date - File.DateLastModified > cint(MaxAgeOfFile)) Or _
     (cint(MaxAgeOfFile) = 0) _
Then
-----

unfortunately the if clause will always be true. as it seems the
second condition after the 'or' is no comparison anymore but it gets
run as an assignment.

i don't program vba often so please apologize if i miss the obvious.



Relevant Pages

  • Re: working with multiple input files
    ... Your BEGIN clause is executing, ... If you are calling this from a batch file, the script will exit. ... You should process the second file within your begin clause as well, ...
    (comp.lang.awk)
  • Can Visio generate a Valid Oracle DDL Statement ?
    ... I am designing DB model for Oracle 9i using Visio for enterprise architect, ... when I generate the script, ... I have to add manually this additional clause: ... LOGGING TABLESPACE IDX01; ...
    (microsoft.public.visio.developer)
  • Re: Right click on text vs. right click on hyperlink
    ... does the script recognize "A" ... as meaning that a hyperlink has been clicked on and "IMG" as meaning ... >> Is there a way that Windows script can tell whether the mouse has ... >> condition or the second condition exists. ...
    (microsoft.public.scripting.vbscript)
  • [Info-ingres] Wrong results returned from outer join
    ... " Outer joins specified in the from clause are not the same as joins ... while the where clause specifies restrictions to be applied to the sources ... Still the script returns all 2 rows. ... ON COMMIT PRESERVE ROWS WITH NORECOVERY ...
    (comp.databases.ingres)
  • Re: How set a
    ... Amartya wrote: ... i have a problem with "where clause" event, ... to update a database. ... I tried this script but nothing ...
    (comp.soft-sys.matlab)