Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:51:13 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  VB Help
Pages: 1   Go Down
Print
Author Topic: VB Help  (Read 258 times)
0 Members and 2 Guests are viewing this topic.
rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« on: January 17, 2012, 11:09:30 PM »

Hello All.  It's been many years since I played with basic and I'm doing pretty good on some complex macros however I have two items I need to ask about.

1)  It seems the only way I can get messages to post to the message line and the errorlog is to make sure there is Code "something" afterwards.

Message("Send Test 1")
Code "G4 P0.5"
While IsMoving(0
  Sleep(10)
Wend

Any code will work, it doesn't have to be dwell.  But If I do not put code in there but just a sleep(10) or the While IsMoving() I stand a 50/50 chance the message will post.



2) Compound Booleans Test

If (RED=1 AND BLUE=1) OR
   (RED = 0 And Green = 1) Then
      do something
End If


Can multiple Boolean Tests be performed like this without using a lot of If Then Else and duplicating code?

Richard







Logged
rwskinner
Active Member

Offline Offline

Posts: 50


View Profile
« Reply #1 on: January 18, 2012, 12:45:40 AM »

I solved item 2.  I'm just curious about Item 1, it just looks messy adding that after messages.

I guess normally I would not be posting very many messages to the log and message bar once I have everything the way I want it.  Right now it comes in handy testing macros and debugging.

Richard
Logged
stirling
Global Moderator
*
Online Online

Posts: 1,190

UK


View Profile WWW
« Reply #2 on: January 18, 2012, 05:11:16 AM »

Hi Richard - I don't have that problem with the message call (R3.043.022). What's the context and your version?

Ian
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!