A really big thanks for the SmartCAM User Group for making the following
macro work...
// Advanced_Wedm 11.0 Windows 11/19/97 15:03:59 Macro File
//
// w:\mcl\pt-test.mcl
// CREATED: 10/31/00
//
// This macro allows the user to only input a 0 or a 1 for
// the variable PT. Many thanks to the SmartCAM User's group
// for their valuable input.
//
VAR_REMOVE_ALL[]
//
PAUSE[TX="Enter PT=0 for a die section with no pockets\n
- or -\n
Enter PT=1 for a die section with pockets.", PT=1]
//
WHILE(0=0)
IF(#PT=0)// if PT is 0 Exit
GOTO(Exit)
ENDIF
//
IF(#PT=1 )// if PT is 1 add point and exit
MAC_EXE[FN="w:\\mcl\\p"]// this macro adds the point back to X0Y0 for
block deleted home move
GOTO(Exit)
ENDIF
//
PROMPT[TX="Enter PT=0 for a die section with no pockets\n
- or -\n
Enter PT=1 for a die section with pockets.", VN="PT"]
ENDW
//
@Exit
Now I have a method to check to check a variable using a WHILE-ENDW loop,
which contains IF-ENDIF test(s) and a PROMPT statement
to try again until I get the user to input what I want!
Regards,
Michael Senack, X354
Your local friendly neighborhood CNC Programmer
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================