473,549 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

enum & contants

Hi I have another question.

The following works but....
Code:
Dim en As Object = USERROLEFieldIn dex.ROL_IDENTIF IER
SelectFilter.Ad d(PredicateFact ory.CompareRang e(en, arrlngUsersToGe t))
I would like a function that returns USERROLEFieldIn dex.ROL_IDENTIF IER so
that I can 'add' to predicate. I would be gratefl if you can advise how the
functions getIndex and getField would look like so that I can code as below:

USERROLEFieldIn dex is a enum and ROL_IDENTIFIER is a item it.
Code:

dim EntFieldInx as string = "USERROLEFieldI ndex"
dim EntityAttribute as string = "ROL_IDENTIFIER "

Dim en As Object = getIndex("USERR OLEFieldIndex). getField("ROL_I DENTIFIER")

SelectFilter.Ad d(PredicateFact ory.CompareRang e(en, arrlngUsersToGe t))
Jul 21 '05 #1
0 807

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1328
by: | last post by:
CREATE TABLE `domain` ( `domain` binary(3) NOT NULL default '', `language` enum('english','greek','german') NOT NULL default 'english', PRIMARY KEY (`domain`) ) ENGINE=MyISAM DEFAULT CHARSET=ucs2; I have problem with this SQL Query. language (enum) appear in non-understanding character format instead of english/greek/german
3
2690
by: Jerry | last post by:
Hi, I found an enum type, for example: enum Alignment { Top, Bottom } is derived Enum, but Enum is a struct. However,
3
2072
by: moondaddy | last post by:
How can I create a public variable similar to an Enum, but rather than returning integer values it would return String values? -- moondaddy@nospam.com
0
919
by: Sparmar2000 | last post by:
Hi I have another question. The following works but.... Code: Dim en As Object = USERROLEFieldIndex.ROL_IDENTIFIER SelectFilter.Add(PredicateFactory.CompareRange(en, arrlngUsersToGet)) I would like a function that returns USERROLEFieldIndex.ROL_IDENTIFIER so that I can 'add' to predicate. I would be gratefl if you can advise how the
7
1139
by: dwg1011 | last post by:
I have a global class GClass with 2 contants. Both are declared public in the form: PUBLIC Const Const1 = "xxx". When I try to use the constant as a default value (see code excerpt below) the program bombs, but when I use a hardcoded value it works fine. Any ideas? Failing Version: <SelectParameters>
34
11150
by: Steven Nagy | last post by:
So I was needing some extra power from my enums and implemented the typesafe enum pattern. And it got me to thinking... why should I EVER use standard enums? There's now a nice little code snippet that I wrote today that gives me an instant implementation of the pattern. I could easily just always use such an implementation instead of a...
2
2847
by: ssamuel | last post by:
I'm trying to create a drop-in replacement for an existing COM library in C# 2.0. The original library is unmanaged and my consumers are customers' VB6 legacy apps, many of which rely on global constants. As ..NET doesn't allow global constants, and I have no member name control over enums, I'm having problems emitting IDL with constants the...
1
3757
by: Cartoper | last post by:
I am working on a project that currently has some interfaces and enums defined in an IDL file. The sole implementor of these interfaces are now in C++ CLI, but I still have consumers that are in unmanaged C++. I would like to move the interface and enum definitions to the C++ CLI code, but I cannot figure out what shape it should take: ...
2
1340
by: Spam Catcher | last post by:
Hi all, I have a usercontrol with a settable enum. How do I allow the user to edit the enum through VS.NET's property panel? The enum shows up, but it's not currently editable. Thanks.
0
7546
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7740
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7985
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7830
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.