Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Enum Compile Error

    I am trying hard to develop an FTP program to add to some of my applications. My company purchased this source code library for which I found code for an FTP application using only API calls. To make a long story short, API calls are the only way I can get this to work on our system.

    Though the source code was under the category of VBA, it appears to have been written in Visual Basic. It works in VB6, but not in Access 97 completely.

    I believe the problem lies in the Class module. I try to do a save and compile all modules and it returns an error in the following code:

    Public Enum EnumFTPTransferType
    eftASCII = 1
    eftBinary = 2
    End Enum

    It highlights "Enum" and the message box states:

    Compile Error
    Expected: identifier

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Enum Compile Error

    Sorry, but Access 97 didn't support Enums. Actually, I don't think VB 5.0 did either. VB 6/Access 2000 does.
    Charlotte

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Serbia and Montenegro (Yugoslavia)
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Enum Compile Error

    Thanks again Charlotte. I don't know if you realize how much time you save me. I really appreciate it.

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Enum Compile Error

    Glad to help.
    Charlotte

Posting Permissions

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