StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Enumerations and LocalizationExpand / Collapse
Author
Message
Posted 09/08/2006 9:42:44 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 7:19:27 PM
Posts: 819, Visits: 11,711
Hi guys.

Would it be possible to declare Enum members as SF localizable keys ?

Post #2709
Posted 09/09/2006 2:53:28 PM
StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 01/15/2008 8:44:34 AM
Posts: 40, Visits: 91
Ivan what are you doing working so late?  You will be happy to know the upcoming release 1.5 has a new attribute for enum localization.  In fact we changed all of the enums in security for some guy in Brazil -- what a pain

The following snippets reveal its simplicity.

Steve

'-- Standard Enum
Public Enum DeniedActions as Integer
  NoMessage = 0
  ReplaceEachCharacter = 1
End Enum

'-- Localized Enum
Public Enum DeniedActions as Integer

  <EnumDisplayValue("IVANEnum - Message", True) > _
  NoMessage = 0

 <EnumDisplayValue("IVANEnum - Replace", True) > _
  ReplaceEachCharacter = 1
End Enum

Attribute Constructor
 New(ValueorKey as String, IsLocalizationKey as Boolean)

Post #2712
Posted 09/10/2006 2:11:02 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 7:19:27 PM
Posts: 819, Visits: 11,711
Working so late ?
What time is it ?
What's the day today ?
I locked myself in a room and someone feeds me everynow and then ...
Post #2715
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:57am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.