473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 911

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

Similar topics

0
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...
0
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.