|
-
Nov 29th, 1999, 01:14 AM
#1
Thread Starter
Addicted Member
I pulled this statement off of a web site and am trying to get it to work in my code. I am running VB4. I don't know what I am doing wrong. I have tried changing public to private, etc but no luck.
Public ENUM FO_Functions
FO_MOVE = &H1
FO_COPY = &H2
FO_DELETE = &H3
FO_RENAME = &H4
End ENUM
-
Nov 29th, 1999, 01:23 AM
#2
Does VB4 support enums? You can find out by looking in Help for that keyword in the index. If you find it there, you will also probably find the answer to your problem, and if you don't then it's not supported.
------------------
Marty
-
Nov 29th, 1999, 01:27 AM
#3
Thread Starter
Addicted Member
I looked in help but it is not found. That is why I posted the Question. Sounds like I can't use this code. Thanks
-
Nov 29th, 1999, 01:29 AM
#4
Enums were supported since VB5, so if you use VB4 and earlier then you can't use them.
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
-
Nov 29th, 1999, 02:30 PM
#5
Addicted Member
Simply drop the enum thing and make constantst of the rest.
Code:
const FO_MOVE = &H1
const FO_COPY = &H2
const FO_DELETE = &H3
const FO_RENAME = &H4
Then you replace in your code every 'as FO_Functions' with 'as Variant' or even 'as integer'.
The only thing that changes is when you are coding, you don't get a list where you can choose from (the enum list), but you have to use one of the constants.
[This message has been edited by c@lle (edited 11-30-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|