Results 1 to 2 of 2

Thread: CommEvent

  1. #1

    Thread Starter
    Addicted Member Booda's Avatar
    Join Date
    Aug 2001
    Location
    B.C, Canada
    Posts
    237

    CommEvent

    I am using the CommEvent to monitor the status of the Comm port.
    I know that the CommEvent creates a OnComm private sub, where you can put some code to do something

    I have used the statement:

    MSComm2.CommEvent
    in my form load, It keeps on giving me a:
    Invalid use of property error
    and I don't know why?

    Any Ideas?

  2. #2
    jim mcnamara
    Guest
    Code:
    Dim MyEvent as Integer
    
    MyEvent = MSComm2.CommEvent
    
    if MyEvent = comEventBreak then 
               do stuff
    end if
    It's a read-only property - look up CommEventConstants in the Object Browser

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width