471,350 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

enum & contants

Hi I have another question.

The following works but....
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.

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 750

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by | last post: by
3 posts views Thread by Jerry | last post: by
reply views Thread by Sparmar2000 | last post: by
7 posts views Thread by dwg1011 | last post: by
34 posts views Thread by Steven Nagy | last post: by
2 posts views Thread by ssamuel | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.