Re: How do you call a process

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

>From: Ron Austin <ronaustin at alltel.net>
>Subject: How do you call a process
>
>
>In one part of the program I wrote a procedure to read a record out of my
>database.
>  procedure onClick_MenuGetRec(integer self, integer even, sequence parms)
>
>err = db_open("Eye-Comp",DB_LOCK_NO)
>err = db_select_table("Diagnosis")
>key = db_find_key(getText(Code))
>if key >0 then
>setText(Code,db_record_key(key))
>setText(Desc,db_record_data(key))
>else
>setText(Desc,"** Code Not Found ***")
>end if db_close()
>end procedure
>setHandler({ MenuGetRec, ToolGetRec}, w32HClick, 
>routine_id("onClick_MenuGetRec" ))
>   In another part of the program I want to do the same thing. I tried to 
>use
>
>call_proc(onClick_MenuGetRec,{}) but I get the following error:
>

You need to pass some parameters at least. onClick_MenuGetRec() takes three. 
Since you aren't using them, it probably doesn't matter what you use, so 
long as they fit the types.

>Syntax error - expected to see an expression, not a procedure
>

Maybe you have an extra = or something before this line.

>
>I know I need to put error trapping in the program.  I want to design a 
>dialog
>box that can be used to report all errors, but I haven't got to it yet.
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu