Problems with testlink result
Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Problems with testlink result
PostPosted: Wed Jan 13, 2010 6:35 am 
Offline
Newbie

Joined: Wed Jan 13, 2010 5:28 am
Posts: 7
Hello,

I use the command testlink, to see if com1 is blocked or not.
The system variable result is set to 0, 1 or 2.
In my case the serial port is not blocked and so the message box display the result 2.
But if I compare the testlink result with 2, I get a syntax error (result = 2)?????
Where is the problem?
  1.  
  2. connect '/C=1 /BAUD=19200'
  3. testlink
  4. messagebox result ''
  5. if result <> 2 then
  6.     messagebox 'Connection to serial port COM1 disturbed.' 'Error'
  7.     goto error
  8. endif
  9.  


Top
 Profile E-mail  
 
 Post subject: Re: Problems with testlink result
PostPosted: Wed Jan 13, 2010 6:40 am 
Offline
Newbie

Joined: Wed Jan 13, 2010 5:28 am
Posts: 7
Problem solved. I forgot then in the if statement.
I'm so stupied. :oops:


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group