comparison vs assignment of '='
From: Beat M?ller (henniez33_at_yahoo.de)
Date: 08/18/04
- Next message: John Owens: "Nifty Script"
- Previous message: Chad Manzer: "RE: need help with rsh"
- Next in thread: Auric__: "Re: comparison vs assignment of '='"
- Reply: Auric__: "Re: comparison vs assignment of '='"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: John Owens: "Nifty Script"
- Previous message: Chad Manzer: "RE: need help with rsh"
- Next in thread: Auric__: "Re: comparison vs assignment of '='"
- Reply: Auric__: "Re: comparison vs assignment of '='"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|