how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name?
how can i print a enum const name? how can i print a enum const name?
how can i print a enum const name?
Go Back  Xtreme Visual Basic Talk > > > how can i print a enum const name?


Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2016, 06:27 AM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,295
Default how can i print a enum const name?


i did a nice image format enum:
Code:
Private Enum ImageType
    BMP = 0
    GIF = 1
    JPEG = 2
    ICO = 3
    cur = 4
    ANI = 5
    TIFF = 6
    PNG = 7
End Enum
when i print, i just see it's value. can i print using the const name?
Reply With Quote
  #2  
Old 11-23-2016, 11:29 AM
dilettante's Avatar
dilettantehow can i print a enum const name? dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,519
Default

The names are not retained in the compiled code unless they are defined in a type library, such as the embedded one in a DLL, OCX, or ActiveX EXE compiled using VB6. Even then private Enums aren't included though.

Such published Enum value names can be read from the type information, most commonly using TLBINF32.dll.
Reply With Quote
Reply

Tags
const, enum, png, print, tiff


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name? how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name? how can i print a enum const name?
how can i print a enum const name?
how can i print a enum const name?
 
how can i print a enum const name?
how can i print a enum const name?
 
-->