Results 1 to 2 of 2

Thread: Private Declare Function

  1. #1

    Thread Starter
    Hyperactive Member Rattlerr's Avatar
    Join Date
    Jul 2005
    Location
    FloralCity,Florida
    Posts
    269

    Private Declare Function

    Private Declare Function IcmpCreateFile Lib "icmp.dll" () As Long

    Thier is a the line of code thats giving me Trouble I have a few other lines Similar to that one with "Private Declare Function"..

    When i go too Debug and Hit Run I get the Following Error Message:

    Comple Error:
    Only Comments may appear after End Sub,End Function,or End Property

    Can someone help me with this problem please,Greatly Appreciated..

    Thxs in Advance...

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Private Declare Function

    Yeah - put it at the top of the module (under the option explicit - but before your first subs/functions.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width