Is there a way to have a script determine how many dialogs windows are opened that all use the same table? $dialog appears to be working on names, not tables.
Doesn't know the difference between dialogs using different tables. I could use it, but I'd have to loop through all open dialogs and counting the ones with the right table.
Here's an attempt but yes you're right we needed to loop..
Code:
alias gTable {
var %x = $dialog(0)
while (%x) {
if ($1 == $dialog(%x).table) var %gtable = $addtok(%gtable,%x,46)
dec %x
}
return $numtok(%gtable,46)
}