Defining Enums

Posts   
1  /  2
 
    
nbrake
User
Posts: 30
Joined: 18-May-2008
# Posted on: 25-Feb-2011 11:06:33   

I Installed LLBLGen Pro version 3.1 (February 7th, 2011).
Unfortunately nothing changed: - Enum (of type byte) is defined in an dll - dll is referenced in an *. typeimports file located in a folder - folder is declared in project settings as an Additional TypeConverter folder - The enum type is loaded and I am able to define a type shortcut (in the Type Shortcut Editor) - When I try to map a field (of type byte or any other type) to an enum the shortcut is not available.

Please see the screenshots attached.

EDIT: Type Shortcut is not available to any type.

nbrake
User
Posts: 30
Joined: 18-May-2008
# Posted on: 25-Feb-2011 11:07:28   

LLBLGen runs on dot.net 4.0.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 25-Feb-2011 11:57:44   

You should specify the enum type as the FIELD type, not as a type converter (so on the fields tab, not on the mappings tab). Could you try that please?

Frans Bouma | Lead developer LLBLGen Pro
nbrake
User
Posts: 30
Joined: 18-May-2008
# Posted on: 25-Feb-2011 12:07:24   

Thank you very much, that worked out!

1  /  2