Re: Proposal for a (small) enhancement to the value() function.

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

Bernie Ryan wrote:
 
>  I would rather that value() function just return the value
>  instead of sequence. The failure should fail within function with
>  a message.

include get.e
function toNumber(sequence pData)
   sequence lTemp
   lTemp = value(pData)
   if lTemp[1] != GET_SUCCESS then
      crash_message("toNumber: Failed to convert " &pData)
      ? 0/0
   end if
   return lTemp[2]
end function

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu