Advertisement

01.21.2004 at 05:18AM PST, ID: 20857675
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

determine the status when using MSCOMM32 ocx to open/close a drawer

Asked by Priya25 in Visual Basic Programming

Tags: ,

Hello All,
I'm using  MSCOMM32 ocx to be able to open a drawer.Refer to my Code..
Everything works fine.
But now I'm trying to display a message like
"Drawer is already open"
when trying to open the drawer when it is already open...
The drawer can be opened only by my application, and it is being closed manually..
When closed, nothing changes in the status of the port...that is why I'm not being able to check for the status if it is open or closed.
One solution is to close the drawer by the application itself and set a global variable as the status of the drawer...but this not being accepted by my users since according to them.
Its a bit complicated here I know...But does anyone have any idea how can I achieve this..

Private Sub Command1_Click()
    Dim output(5) As Byte
    output(1) = 27
    output(2) = 112
    output(3) = 0
    output(4) = 50
    output(5) = 250
    MSComm1.output = output
    End Sub

Private Sub Form_Load()
   ' Use COM1.
   MSComm1.CommPort = 1
   ' 9600 baud, no parity, 8 data, and 1 stop bit.
   MSComm1.Settings = "9600,N,8,1"
   ' Tell the control to read entire buffer when Input
   ' is used.
   MSComm1.InputLen = 0
   ' Open the port.
   MSComm1.PortOpen = True
   End Sub

Private Sub Form_Unload(Cancel As Integer)
   ' Close the serial port.
   MSComm1.PortOpen = False
End Sub

Regards,
PriyaStart Free Trial
 
Loading Advertisement...
 
[+][-]01.21.2004 at 05:26AM PST, ID: 10164464

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.22.2004 at 11:22PM PST, ID: 10182065

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 07:12AM PST, ID: 10184396

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.27.2004 at 03:31AM PST, ID: 10208314

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.27.2004 at 03:41AM PST, ID: 10208367

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.27.2004 at 04:59AM PST, ID: 10208913

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.27.2004 at 11:09PM PST, ID: 10216209

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2004 at 02:42PM PDT, ID: 11985947

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.10.2004 at 06:23AM PDT, ID: 12026228

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: open, drawer
Sign Up Now!
Solution Provided By: DarthMod
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32