Welcome Guest Search | Active Topics | Sign In | Register

EO.Web.NavigationItemText.a no longer supported? Options
Mackin
Posted: Thursday, February 3, 2011 4:44:39 PM
Rank: Advanced Member
Groups: Member

Joined: 6/1/2007
Posts: 31
Hello,

I just installed the recent build 2010.47.2. Upon testing our projects with the new build, it fails on the below line where the EO.Web.NavigationItemText.a is referenced with the following errror::

Error 10 'EO.Web.NavigationItemText' does not contain a definition for 'a'

Code: C#
protected void BuildTabsSection(int currentTab, string TabName, int RegionID, DataTable DistrictTM)
{
    DataRow[] RegionsResults = DistrictTM.Select(DataTableRegion);

    eo_tab_Regions.Items[currentTab].Text = EO.Web.NavigationItemText.a(eo_tab_Regions.Items[currentTab].Text + " (<b>" + RegionsResults.Length.ToString() + "</b>)");


}


eo_tab_Regions is an EO.TabStrip control.

When checking the code with the old DLL, I see the "a" property is displayed. Under the new build, the only properties exposed are "Equals" and "ReferenceEquals".

Was the "a" property removed, why, and what is the recommended altenate syntax givent the above statement?

Thanks.
eo_support
Posted: Thursday, February 3, 2011 5:21:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You should not use those. As a general rule, you should only use what's documented. Others especially those with name "a", "b", "c" are not meant to be used by you for very beginning and their name can change in every build. Those are marked as "not for public use" and will be automatically renamed to meaningless names during each build. The build process can pick any name. Because it can change during every build (as it has happened to you), you should regard those members as not existing even if you see them.

As a result, we will not be able to tell you what "a" is, or why it was removed, or what is the replacement. If you can tell us what features you are looking for, we can tell you what is the documented member for that, or whether a public member exists for that at all.

Thanks!
Mackin
Posted: Friday, February 4, 2011 10:14:17 AM
Rank: Advanced Member
Groups: Member

Joined: 6/1/2007
Posts: 31
I confirmed with the original developer the intent of the code was to append some data to the existing tab text. I modified the code to simply address the tab with:

Code: C#
eo_tab_Regions.Items[currentTab].Text += "( ... appended tab text... )";


This seems to work fine.

Thanks,
eo_support
Posted: Friday, February 4, 2011 10:20:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Great. Glad that you worked it out.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.