how to have a LIST in MACRO PAUSE

how to have a LIST in MACRO PAUSE

Anonymous
Not applicable
926 Views
2 Replies
Message 1 of 3

how to have a LIST in MACRO PAUSE

Anonymous
Not applicable

Hello, 

 

I needed to give some information to the user. As i want to ask what time of part he will be machining for later apply a correct macro. 

 

I was wondering how to use a LIST and use it in a Macro Pause 

 

Something like this: 

 

STRING LIST $tipos_eletrodos = {}

FILE OPEN 'C:\dcam\tipos_eletrodos.txt' FOR READ AS tipos_eletrodos
	FILE READ $tipos_eletrodos FROM tipos_eletrodos
FILE CLOSE tipos_eletrodos

MACRO PAUSE $tipos_eletrodos

 

The problem is that i get a error message saying: "#ERROR: Parameter cannot be represented by a string"

 

Any ideias on how to solve this ? 

 

Thank you, 

José Alves

 

0 Likes
Accepted solutions (1)
927 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

Try this:

STRING tiposEl = ""
STRING LIST $tipos_eletrodos = {}

FILE OPEN 'C:\dcam\tipos_eletrodos.txt' FOR READ AS tipos_eletrodos
	FILE READ $tipos_eletrodos FROM tipos_eletrodos
FILE CLOSE tipos_eletrodos

FOREACH listElement IN tipos_eletrodos {
	$tiposEl = $tiposEl + CRLF + $listElement
}

MACRO PAUSE $tiposEl

 

 

Mateusz

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank You!!! 

 

that works perfectly 

0 Likes