Re: Missing library
- Posted by Johnny L Noble <jlnoble at frontiernet.net> Jul 13, 2004
- 812 views
irv mullins wrote: > As it stands, not even Euphoria can programatically retrieve its own > version, can it? > > Irv > Hello Irv,I think Rob posted this a while back.
------------------------Get Version Info of Euphoria--------------------- include Win32lib.ew include wildcard.e object path,key integer lp,lv,fn sequence version
with trace trace(1) path=lower(command_line()) if equal(path[1],path[2]) then
/") or not equal(path[lp-3..lp-1],"bin") or not find(path[lp-4],"
/") then puts(1,"bin dir not recognised\n") if getc(0) then end if abort(0) end if path=path[1..lp-5] end if path&="
include
get.e" fn=open(path,"r") if fn=-1 then printf(1,"error opening %s\n",{path}) if getc(0) then end if abort(0) end if version=gets(fn) close(fn) lv=length(version) while find(version[lv],"\r\n") do lv-=1 end while
Johnny :)
jln }}}