Posts: 11,937
Threads: 138
Joined: Dec 2002
Here use if, not ifi.
If win returns not 0, the window exists.
Macro
Macro1551
str tt=
;window1
;window2
str t ttNew
int ttt
foreach t tt
,ttt=win(t)
,if ttt
,,mac "SetToolbar" ttt
,,ttNew.addline(t)
tt=ttNew
out tt
1