Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: swarfboy on November 20, 2008, 11:44:48 PM

Title: MsgBox()
Post by: swarfboy 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?

Title: Re: MsgBox()
Post by: poppabear on November 21, 2008, 01:33:43 AM
look at the cypress manual from the Wiki
Title: Re: MsgBox()
Post by: swarfboy 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.
Title: Re: MsgBox()
Post by: ger21 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??
Title: Re: MsgBox()
Post by: softselect on January 22, 2009, 04:52:30 AM
I found it here http://www.cypressinc.com/enduser.pdf
Title: Re: MsgBox()
Post by: jemmyell 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