문제

What is the command in tcl such as num2str in MATLAB? For example, I would like to repeat 10 process from "file1" to "file10" using for loop. Please help me.

for {set i 1} {$i<11} {incr i} {
pw::Script source {C:/new/file1.glf }
pw::Application markUndoLevel {Run Script}
}
도움이 되었습니까?

해결책

Is this what you're after?

for {set i 1} {$i<11} {incr i} {
    pw::Script source "C:/new/file${i}.glf"
    pw::Application markUndoLevel {Run Script}
}

Variables don't get expanded within braces.

This is a very basic question. You would benefit from reading through the Tcl tutorial.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top