I first made this program with PBCC and contools and
it worked fine. I then made it a dll in PBdll 6.0 and
had the following problem (I was able to get around it
so I'm just curious more than anything).
There is no dialog - just a collection of msgboxes and
input boxes but the problem is on an on error goto.
The error happens on the mkdir (which has already been
made previously). It never seems to go to the ALREADYMADE
error routine (i put a msgbox at the beginning to see).
As i said, I got around it by using a on error resume next.
(I hope this shows up indented - I did post it that way)
Thanks
.
.
.
ON ERROR GOTO ALREADYMADE
ecode%=1
MKDIR whatever
aftermkdir:
ecode%=2
KILL whatever
afterkill1:
.
.
ALREADYMADE:
select case ecode%
case 1
RESUME aftermkdir
case 2
RESUME afterkill1
.
.
end select
close
exit sub
'just in case
------------------
it worked fine. I then made it a dll in PBdll 6.0 and
had the following problem (I was able to get around it
so I'm just curious more than anything).
There is no dialog - just a collection of msgboxes and
input boxes but the problem is on an on error goto.
The error happens on the mkdir (which has already been
made previously). It never seems to go to the ALREADYMADE
error routine (i put a msgbox at the beginning to see).
As i said, I got around it by using a on error resume next.
(I hope this shows up indented - I did post it that way)
Thanks

.
.
.
ON ERROR GOTO ALREADYMADE
ecode%=1
MKDIR whatever
aftermkdir:
ecode%=2
KILL whatever
afterkill1:
.
.
ALREADYMADE:
select case ecode%
case 1
RESUME aftermkdir
case 2
RESUME afterkill1
.
.
end select
close
exit sub
'just in case
------------------
Comment