Re: How does crash_routine() work?

new topic     » goto parent     » topic index » view thread      » older message » newer message

> I have three procedures in my program, and I want the third one to initia=
te
> when an error occures in my program.  In order to do that, I must call
> crash_routine() with a number instead of a procedure.  According to the
> notes in machine.e, the number represents the routine id of a procedure
> in my program.  How do I know which procedure has which routine id?

With routine_id()!

-- note: name is passed as a sequence, no parentheses
ProcID = routine_id("ProcedureName")
FuncID = routine_id("FunctionName")


It really is that easy.

~Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu