#usage "Edit next symbol

\n" "Author: alf@cadsoft.de" string cmd = ""; string sym[]; string edit = ""; int count = 0; int n = 0; if (library) library(L) { L.symbols(S) { count++; sym[count] = S.name; cmd += S.name + "\n"; } } if (symbol) symbol(S) { edit = S.name; } for (n = 1; n < count; n++) { if (edit == sym[n]) { break; } } if (n < count) { cmd = "EDIT " + sym[n + 1] + ".sym;\n" ; // ************************************************** // a ";" must not follow DESCRIPT // otherwise the description is overwritten // with an empty string // ************************************************** // dlgMessageBox(cmd, "+Ok", "-Cancel"); } else cmd = "EDIT " + sym[1] + ".sym;\n" ; exit(cmd);