TAdvEdit eaRight

C++Builder

I am trying to set TAdvEdit EditAlign property programmatically, and keep getting 'ambiguous' errors. I tried several combinations similar to:

Frequency->EditAlign = TEditAlign::eaRight;

without success.

Can you help?

thanks

Kevin

Can you include the namespace?
AdvEdit1->EditAlign = Advedit::TEditAlign::eaRight;

That should work, but I get:

"use of undeclared identifier 'AdvEdit'" even though I explicitly included Advedit.hpp

If I create a new VCL project, both

Advedit::TEditAlign::eaRight, and
TEditAlign::eaRight

work as expected, so I have a problem somewhere in my project.

Thanks for the help

Kevin

Make sure there are no more old version .HPP file in project library paths.
Or try to see if include file ordening helps.

That was it. An include file in a library was hiding the TMS file.

Thanks !

Kevin