cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

ProMessageDisplay not displaying all messages

MrSteveR_3
12-Amethyst

ProMessageDisplay not displaying all messages

Hey guys,

 

For instance:

for (int j=0; j<5; j++)

{

ProMessageDisplay(message_file_init, "PTAFEX ERROR %0s", somevariable[j]);

}

 

I have something like below, the text is always the same, only differs the last word which is the variable somevariable[j].

When I launch it with Creo, it only prints the last text message when j=4.

What am I doing wrong and what shall I do so that all messages from j = 0 to 4 get printed?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

my suggestion ... open Case at PTC Support.

1.)

I guess that trail file contains all messages.

2.)

I guess that Creo spare the space in message area and rewrites similar messages. Include 1 second pause between ProMessageDisplay commands and you will see.

3.)

You can try putting "PTAFEX ERROR %0s", somevariable[j] into variable MSG and use MSG inside ProMessageDisplay command.

 

 


Martin Hanák

View solution in original post

2 REPLIES 2

Hi,

my suggestion ... open Case at PTC Support.

1.)

I guess that trail file contains all messages.

2.)

I guess that Creo spare the space in message area and rewrites similar messages. Include 1 second pause between ProMessageDisplay commands and you will see.

3.)

You can try putting "PTAFEX ERROR %0s", somevariable[j] into variable MSG and use MSG inside ProMessageDisplay command.

 

 


Martin Hanák

Hi,

Yes, trail file contains all messages.

Right, including 1 second pause solves it.

Thank you!

Top Tags