473,486 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

enum & contants

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
functions getIndex and getField would look like so that I can code as below:

USERROLEFieldIndex is a enum and ROL_IDENTIFIER is a item it.
Code:

dim EntFieldInx as string = "USERROLEFieldIndex"
dim EntityAttribute as string = "ROL_IDENTIFIER"

Dim en As Object = getIndex("USERROLEFieldIndex). getField("ROL_IDENTIFIER")

SelectFilter.Add(PredicateFactory.CompareRange(en, arrlngUsersToGet))
Nov 22 '05 #1
0 912

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

Similar topics

0
1324
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...
0
801
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...
21
4568
by: Andreas Huber | last post by:
Hi there Spending half an hour searching through the archive I haven't found a rationale for the following behavior. using System; // note the missing Flags attribute enum Color {
3
2684
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
2067
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
7
1138
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...
34
11126
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...
2
2841
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...
1
3756
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...
2
1338
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
7105
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,...
0
6967
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...
0
7180
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...
1
6846
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...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
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...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.