Hello Guest it is December 28, 2024, 02:01:18 AM

Author Topic: MsgBox()  (Read 10088 times)

0 Members and 1 Guest are viewing this topic.

MsgBox()
« on: November 20, 2008, 11:44:48 PM »
mach3.042.020 throws a  compile error when I try to use button parameters with MsgBox()

ie. MsgBox("test", 2 ,"test")

Does mach have all VB parameters?

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
Re: MsgBox()
« Reply #1 on: November 21, 2008, 01:33:43 AM »
look at the cypress manual from the Wiki
fun times
Re: MsgBox()
« Reply #2 on: November 21, 2008, 01:15:05 PM »
Lol. I understand why i needed to read it. It was involved. Well I got it working and here is my code.

Msg = "Will now probe tool to calculate Z to Probe distance."
Style = 4 + 64 + 0
Title = "Fixture Setup"
Response = MsgBox(Msg, Style, Title)
   If Response = 6 Then
      code "M101"
   Else
      Exit Sub
   End If

I couldn't find the cypress enable language reference on the wiki. I ended up googling it and found it on another website. Can someone provide a link b/c even the wiki's page search function turned up zero results.

Offline ger21

*
  • *
  •  6,295 6,295
    • The CNC Woodworker
Re: MsgBox()
« Reply #3 on: November 21, 2008, 01:33:20 PM »
It used to be on either the download or docs page, but I don't see it anymore??
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: MsgBox()
« Reply #4 on: January 22, 2009, 04:52:30 AM »
Re: MsgBox()
« Reply #5 on: January 23, 2009, 11:19:33 AM »
It is in the Wiki:

VB Scripting for Macros and user screen buttons
Introduction to scripting
Link to VB Script language definition and built in Subroutines/Functions here

There is a link at the word 'here' in:
Link to VB Script language definition and built in Subroutines/Functions here

-James