Re: Ecw for Borland

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

Robert,
this might be a bug in the translator. The 'dir' function is not returning a
file-found condition.

The program below works in the interpretor but not when compiled (Borland
5.5).


--------------------
include file.e
include msgbox.e
object dirResult
sequence aMsg
integer in
sequence FileName
FileName = "testdir.exw"
   dirResult = dir(FileName)
   if atom(dirResult)
   then
      aMsg = sprintf("The source file '%s' cannot be found.", {FileName})
      in = message_box (aMsg, " Error ", 0)
   else
      aMsg = sprintf("File is %s", {dirResult[1][D_NAME]})
      in = message_box (aMsg, " Good ", 0)
   end if

--------------------

------
Derek Parnell
Melbourne, Australia
(Vote [1] The Cheshire Cat for Internet Mascot)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu