RE: Euphoria Database Browser

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

Thanks, CK.  You can fix it by adding an if statement around setHandler:

if length(recent_menu) then
	setHandler( recent_menu[1..length(recent_menu)-1], w32HClick, orf)

end if

I've uploaded an updated copy, and also included my testing db (sql.edb),
which is the ARCHIVE.EDB provided by RDS that I've converted to EuSQL
format. It has a couple of [crude] forms included.

http://www14.brinkster.com/matthewlewis/projects.html

Matt Lewis

> From: C. K. Lester [mailto:cklester at yahoo.com]

> recent_menu is length(0) at the beginning, so this section 
> fails for me:
> 
> procedure open_recent_file( integer id, atom event, sequence params )
>     sequence swap
> 
>  id = find( id, recent_menu )
>     recent_files = {recent_files[id]} & recent_files[1..id-1] &
> recent_files[id+1..length(recent_files)]
>     update_recent()
>     do_open( recent_files[1][1] & recent_files[1][2] )
> end procedure
> orf = routine_id("open_recent_file")
> setHandler( recent_menu[1..length(recent_menu)-1], w32HClick, 
> orf) -- <--
> fails here

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

Search



Quick Links

User menu

Not signed in.

Misc Menu