I'm trying to take a String variable and
add a Decimal variable to it, to form
a new String variable.

With this String variable I want to name
a selected element.

Can this be done?

Here's what I've come up with so far...

// Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File
// w:\mcl\agiePOCK.mcl
// CREATED: 05/29/01
//  
//PAUSE[TX="The so far so good macro pause!", LR=10, LC=5, SR=2, SC=40,
PT=1]
//GRAPHICS_OFF[]

VAR_REMOVE_ALL[]

 #Group=GRP(0) // set the number of selected elements to the Group variable

ELMT_SEQ[BA=1, EL="0", ME=1]// insert after 0

 #Counter=1 // set counter to 1 for loop

STRING: #S1

WHILE(#Counter<#Group) // start loop

  #S1=STRTMP("P%#Counter")// I would like S1=P1 then S1=P2 then S1=P3 etc.

  NAME_ELMT[EL="#Counter", EN="#S1"]// this will name the element yes?

  #Counter=#Counter+1 // advance counter for next element

ENDW  // end loop

PAUSE[TX="The so far so good macro pause!", LR=10, LC=5, SR=2, SC=40, PT=1]
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]
======================================================================

Reply via email to