routine_id

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

Hello all,

Just one quick question.


What EXACTLY does 'routine_id' do?


And please don't tell me to RTM.  I have RTM an it says:

Syntax: i = routine_id(st)
Description: Return an integer id number, known as a routine id, for a
user-defined Euphoria procedure or function. The name of the procedure or
function is given by the string sequence st. -1 is returned if the named
routine can't be found.
Comments: The id number can be passed to call_proc() or call_func(), to
indirectly call the routine named by st.

That doesn't really tell me what it does.  It tells me what I get when I use
it.

As an example:

onClick[Button2] = routine_id( "onClick_Button2" )

I know that 'onClick_Button2' is a procedure that is previously defined.

Apparently 'onClick' is a sequence and I am making some subscript of that
sequence equal to whatever number 'routine_id' spits out.

I think that 'onClick' is probably defined in win32lib.  Don't know for
sure.

Shoot, for all I know I really want to know what "onClick[Whatever]" does or
perhaps "onKeyPress[Whatever]"  I really don't know.

But for now.


What EXACTLY does 'routine_id' do?

Thank in advance for the several dozen answers I am sure to get from this.

Glen


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu