Re: Help with plugin concept

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

Hello Judith,

----------
> From: Judith Evans <camping at txcyber.com>
> To: Eu Forum <EUforum at topica.com>
> Subject: RE: Help with plugin concept
> 
> 
> The corrected routine is below but it doesn't 
> really matter because it will never work.
> 
> files=dir(the_current_dir & "//Plugins")
> if sequence(files) then
>     if length(files) then
>         for i=1 to length(files) do
>             if not equal("d",files[i][D_ATTRIBUTES]) then
> --corrected line
>               include files[i][D_NAME]    <=== gets ex.err
> -----------------------------------
>             end if
>         end for
>     end if
> end if

Try please:

-- code
include file.e

object files

sequence PluginS
integer P_S

PluginS={}

files = dir(current_dir()) -- & "//Plugins") -- just to test, any files
if sequence(files) then
    if length(files) then
	for i=1 to length(files) do
	    if not equal("d",files[i][D_ATTRIBUTES]) then
 --            include files[i][D_NAME]    <=== gets ex.err
   PluginS &= "include " & files[i][D_NAME] & "\n"  --<-- this is a clue
	    end if
	end for
    end if
end if

P_S = open ("plugins.ew", "wb")
 puts(P_S, PluginS)
close(P_S)

include plugins.ew
-- end of code

Why not?
Works for me ...

Good Luck!

Regards,
Igor Kachan
kinz at peterlink.ru

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

Search



Quick Links

User menu

Not signed in.

Misc Menu