Correct variable definition in PB
Correct variable definition in PB
(OP)
Hi everyone!
MB it will be a silly question, but... I have 2 processes within which the one variable is used.
proc MOM_myProc1 {} {
global myVar
set myVar 1
}
proc MOM_myProc2 {} {
global myVar
MOM_abort "$myVar"
}
in the log it is writen than "no such variable 'myVar'" in process 2
what I've made wrong?
Thanks in advance
MB it will be a silly question, but... I have 2 processes within which the one variable is used.
proc MOM_myProc1 {} {
global myVar
set myVar 1
}
proc MOM_myProc2 {} {
global myVar
MOM_abort "$myVar"
}
in the log it is writen than "no such variable 'myVar'" in process 2
what I've made wrong?
Thanks in advance





RE: Correct variable definition in PB
RE: Correct variable definition in PB
RE: Correct variable definition in PB
myVar is simple PB variable. not UDE
RE: Correct variable definition in PB
Is this activated by a UDE?
John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6.0.5.3
RE: Correct variable definition in PB
proc1 is not being called before proc2 or they are being called in a different namespace.
RE: Correct variable definition in PB
RE: Correct variable definition in PB
mouldy1, proc1 and proc2 are in the start of the program. I think, if the process is initialized once, it will be also available during the whole post processing, isn't it?
RE: Correct variable definition in PB
what is activating proc2?
John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6.0.5.3
RE: Correct variable definition in PB