If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Totally Lost and needing help...

Hello!
I have created a control that will perform a very simple function: connect
and disconnect from the Internet with a single call. It uses API calls to
accomplish this thereby insulating the developer from the API. But I am
totally lost now because when I try to create my .OCX file I get an error
message telling me that Nothing but comments can appear after an END SUB,
END FUNCTION or END PROPERTY. I really hate to post this much code but could
someone look over this and tell me what is wrong? This is a rather important
project so I really appreciate your help.

Re: Totally Lost and needing help...

"Anthony M. Saffer" <apsaffer@hotmail.com> wrote in message
news:39b530d1$1@news.devx.com...
>
> Hello!
> I have created a control that will perform a very simple function:
connect
> and disconnect from the Internet with a single call. It uses API calls to
> accomplish this thereby insulating the developer from the API. But I am
> totally lost now because when I try to create my .OCX file I get an error
> message telling me that Nothing but comments can appear after an END SUB,
> END FUNCTION or END PROPERTY. I really hate to post this much code but
could
> someone look over this and tell me what is wrong? This is a rather
important
> project so I really appreciate your help.

Re: Totally Lost and needing help...

Dave,
Just tried it and it didn't seem to work. I took all of my constants and
declare statement and moved them to the top of my code - before ANYTHING
else. It told me that I couldn't have declare statements, constants, arrays,
etc, in public areas of the code. Any ideas?

Re: Totally Lost and needing help...

"Anthony M. Saffer" <apsaffer@hotmail.com> wrote in message
news:39b542cb$1@news.devx.com...
>
> Dave,
> Just tried it and it didn't seem to work. I took all of my constants and
> declare statement and moved them to the top of my code - before ANYTHING
> else. It told me that I couldn't have declare statements, constants,
arrays,
> etc, in public areas of the code. Any ideas?
>
> Anthony
>