Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 09:44:05 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
| | |-+  MACH3 Locks up in WHILE (IsMoving()) loop
Pages: « 1 2   Go Down
Print
Author Topic: MACH3 Locks up in WHILE (IsMoving()) loop  (Read 698 times)
0 Members and 2 Guests are viewing this topic.
snark
Active Member

Offline Offline

Posts: 15


View Profile
« Reply #10 on: January 01, 2012, 10:06:38 PM »

I have a question, is the use of the parenthesis  invalid or redundant? (IsMoving()) <-> IsMoving()
Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,190

UK


View Profile WWW
« Reply #11 on: January 02, 2012, 05:19:06 AM »

I have a question, is the use of the parenthesis  invalid or redundant? (IsMoving()) <-> IsMoving()
It's a moot point - I'm not aware of the formal syntax diagrams being published for CB so I can only assume that CB's syntax is similar to other dialects of BASIC. With that assumption, it shouldn't actually matter because if the parentheses arn't formally part of the while syntax (as they are in C for example) then they would be parsed as a part of the expression syntax (in most BASIC dialects an expression can have an arbitrary number of balanced parentheses around it)

This is not to be confused with the fact that some dialects of BASIC have a peculiar syntax with regards to actual parameter lists. Function calls use parenthesis whereas procedure calls don't UNLESS preceded by the CALL keyword. CB doesn't appear to care!

Meanwhile...

I don't see the syntax error nor does the editor. I see the funny looking ' but can't explane it.
The funny looking ` as you put it IS the syntax error. The comment char in CB is '. You can ignore it if you like but I find it interesting that this is the second time in a week where W7 has been reported to have failed to catch a syntax error that XP succeeds in catching. If an interpreter fails to catch a syntax error then personally I would not trust it after that. Your problem may have more to do with this anomaly than you might think.
Logged
snark
Active Member

Offline Offline

Posts: 15


View Profile
« Reply #12 on: January 02, 2012, 05:36:37 PM »

The Macro in the Macro Library has ' for comment. I am unable to find the displayed charactor on my keyboard and I am sure that I struck the ' key when I entered the code. Is there a way to display the Hex  value of the charactor in the listing. I would expect a different responce when attempting to run, if the comment hadn't been recognized and the editor were to try to execute the comment as code.

Point being: I think the problem is with the web browser and not the editor. Otherwise I can't explane it. 'C  'D  'c  ' d
Logged
Pages: « 1 2   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!