Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Guys,
I wounder if someone could help me out here, to see what am I doing wrong.
Im trying to build this macro to check if all NCs are written, if not, prompts a message in order for the user to see.
otherwise if all NCs are written it closes pmill.
macro:
DIALOGS ERROR OFF
DIALOGS MESSAGE OFF
FOREACH $nc IN FOLDER('ncprogram') {
IF $nc.Status == "not_written" {
message WARN "Some NCs are not written!!" + " " +CRLF+ " NC: " + $nc.name
} elseIF $nc.Status == "written" {
MESSAGE INFO "all NCs are written!!"
Exit
}
}
}
DIALOGS ERROR On
DIALOGS MESSAGE On
thanks in advance!
Good Day!
Solved! Go to Solution.