How do you call a process
- Posted by "Ron Austin" <ronaustin at alltel.net> Oct 19, 2003
- 454 views
In one part of the program I wrote a procedure to read a record out of my database.=0D =0D procedure onClick_MenuGetRec(integer self, integer even, sequence parms)= =0D err =3D db_open("Eye-Comp",DB_LOCK_NO)=0D err =3D db_select_table("Diagnosis")=0D key =3D db_find_key(getText(Code))=0D if key >0 then=0D setText(Code,db_record_key(key))=0D setText(Desc,db_record_data(key))=0D else=0D setText(Desc,"** Code Not Found ***")=0D end if =0D db_close()=0D end procedure=0D setHandler({ MenuGetRec, ToolGetRec}, w32HClick, routine_id(=20 onClick_MenuGetRec" ))=0D =0D 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:=0D =0D Syntax error - expected to see an expression, not a procedure=0D =0D =0D I know I need to put error trapping in the program. I want to design a dia= log box that can be used to report all errors, but I haven't got to it yet.=