CDFIELD Problem. What is exact type?

Hi,
According to the notes documentation, CDFIELD structure is as
typedef struct {
WSIG Header;
WORD Flags; /* Field Flags (see Fxxx) */
WORD DataType; /* Alleged NSF Data Type */
WORD ListDelim; /* List Delimiters (LDELIM_xxx and
LDDELIM_xxx) */
NFMT NumberFormat; /* Number format, if applicable */
TFMT TimeFormat; /* Time format, if applicable */
FONTID FontID; /* displayed font */
WORD DVLength; /* Default Value Formula */
WORD ITLength; /* Input Translation Formula */
WORD TabOrder; /* Order in tabbing sequence */
WORD IVLength; /* Input Validity Check Formula */
WORD NameLength; /* NSF Item Name */
WORD DescLength; /* Description of the item */
WORD TextValueLength; /* (Text List) List of valid text
values */
/* Now comes the variable part of the struct... */
} CDFIELD;

Where DataType is defined as FIELD_TYPE_XXX. But in notes samples DataType is being used as TYPE_xxx. So, what is DataType really is? Isn't there any way to get FIELD_TYPE_XXX from CDFIELD or something else?
If I create a field of type Color in notes designer. I don't think there is a TYPE_xxx constant which can exactly define it (In my case using TYPE_xxx, it is bringing it as TEXT). If we can, please help me.

Thank in advance
prpradipAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SysExpertCommented:
Not sure about C access but in the Notes design, you can get the design data of all fields, and that may help.

Are you using the Notes Design Client at all ?

If not you should, just for the testing and documentation options

I hope this helps !
0
prpradipAuthor Commented:
I didn't get your point.
0
SysExpertCommented:
In order to find out more about how Notes uses and gives access to design data of fields, you need to have the Notes Design client installed, or at least have access to the Design help, since it contains  information that may not be easily available elsewhere.

0
prpradipAuthor Commented:
Still I am unable to find out exact type. Notes designer contains a FIELD with type 'Color' but from API I am not being able to describe that field as 'Color'. I have used all CDEMBEDDEDCALCTL, CDEXT2FIELD, CDEXTFIELD and CDFIELD to describe that field as 'Color' but I am not being able to.
0
prpradipAuthor Commented:
I got it......I think CDExtField contains flags2 0x100080. Where 0x80 is Control and 0x100000 is COLOR although it is not documented.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.