Jump to content
Sign in to follow this  
SlowCoder74

With ... EndWith block results in "missing separator character before keyword"

Recommended Posts

SlowCoder74

Doesn't look like there's a lot of info on the board for this, so ...

Here's my code snippet:

$sEmailFrom = "myemail@here.com"
    $sEmailTo = "goingto@somewhereelse.com"
    $sEmailSubject = "test"

    Local $oEmail = ObjCreate("CDO.Message")
    With $oEmail
        .From = $sEmailFrom
        .To = $sEmailTo
        .Subject = $sEmailSubject
    EndWith

For some reason, it results in "error: missing separator character before keyword" on the ".To = " line.  This code was successfully compiling last August, and I haven't touched it since.  I am currently using 3.3.12.

Edited by SlowCoder74

Share this post


Link to post
Share on other sites
Jos

There actually is quite a lot of info on this particular issue as it is a bug in au3check which is solved in the current production version.
 ;)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×