Re: Error Trapping

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

>>global procedure My_Procedure(sequence Obj)
>>      puts(1,"You sent " & Obj & " to My_Procedure")
>>end procedure

-- You don't need trap

global procedure My_Procedure(sequence Obj)

  -- take some corrective action or return and error condition
  if obj = {} then
    return -1
  end if

  puts(1,"You sent " & Obj & " to My_Procedure")

end procedure

bernie

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

Search



Quick Links

User menu

Not signed in.

Misc Menu