so maybe just end the loop when #Count<#No_Elmt ( not <= ) ... or similarly, intitialize #Count to 0 instead of 1 ??? ernie gemmel
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Senack Sent: June 4, 2001 5:08 PM To: '[EMAIL PROTECTED]' Subject: [mfg-smartcam] Macro help Attached is the macro file that I'm working with the generous assistance from this group. On the last While/Endw loop it seems to go past the number of named elements that were set in the first While/Endw loop. For example, if I picked 4 elements in the .pm4 file and ran the macro it will name these elements E1,E2,E3 and E4. The last loop test of WHILE(#Count<=#No_Elmt) seems to not stop at element E4 and goes onto E5. This causes and error of unknown identifier in expression 'E5'. I set #Count=1 and #No_Elmt=GRP(0) is set to 4 when I do a Macro, Variables check in the .pm4 file. <<AGIEPOCK.MCL>> Regards, Michael Senack, CNC Programmer Blount Canada Ltd 505 Edinburgh Road North Guelph Ontario N1H 6L4 519 822 6870 X354 FAX 519 822 1450 http://www.blount.com/ ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
