Hi,
I'm trying to build a macro library for impromptu but I can't call the module in the external file.
could somebody give me a hint about what I'm doing wrong.
this is the code i'm using for the main macro
declare sub ctrl_pad
BasicLib "D:\Cornelis\Documenten\Impromptu\macros\Opslaanals.mcx" alias "ctrl_pad" (pad as string)
sub main
dim pad as string
pad="c:\test"
call ctrl_pad(pad)
end sub
and this is the corresponding part of the library
option explicit
sub ctrl_pad(pad)
dim tstdir
tstdir= dir (pad,16)
if tstdir="" then
mkdir(pad)
end if
end sub
I've also tried (of course without the Rem)
rem '$Include:'D:\Cornelis\Documenten\Impromptu\Test\test.SBH'
this worked fine for a msgbox but refused to create the folder
Thanks a lot
Cornelis
I'm trying to build a macro library for impromptu but I can't call the module in the external file.
could somebody give me a hint about what I'm doing wrong.
this is the code i'm using for the main macro
declare sub ctrl_pad
BasicLib "D:\Cornelis\Documenten\Impromptu\macros\Opslaanals.mcx" alias "ctrl_pad" (pad as string)
sub main
dim pad as string
pad="c:\test"
call ctrl_pad(pad)
end sub
and this is the corresponding part of the library
option explicit
sub ctrl_pad(pad)
dim tstdir
tstdir= dir (pad,16)
if tstdir="" then
mkdir(pad)
end if
end sub
I've also tried (of course without the Rem)
rem '$Include:'D:\Cornelis\Documenten\Impromptu\Test\test.SBH'
this worked fine for a msgbox but refused to create the folder
Thanks a lot
Cornelis