473,382 Members | 1,367 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,382 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))
Jul 21 '05 #1
0 799

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...
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
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...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.