AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 26.03.2020, 17:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
a33ik: Extensible enum values are not deterministically assigned to a numerical value.
Источник: http://daxonline.org/1690-extensible...cal-value.html
==============

Warning: Assigning a numerical value to extensible enum 'Extensible Enumeration(EnumerationType)' will yield unexpected results. Extensible enum values are not deterministically assigned to a numerical value.

Warning: Comparing a numerical value with extensible enum 'Extensible Enumeration(EnumerationType)' will yield unexpected results. Extensible enum values are not deterministically assigned to a numerical value.



Same integer value for additional options to standard enumeration types (enumeration extensions) are not guaranteed across different environments.
Therefore you need to avoid comparing integers with extensible enums and using integer values in integrations as extended options may have different integer value in several environments (if there are two solutions, which extend same enumeration type).


However FormComboBoxControl.selection() methods returns int eventhough control on the form is based on the specific enum type.
You can use enum2int global function to convert enum value to int (suppress warning in this case):
FormComboBoxControl.selection() == enum2int(EnumType::EnumOption)
Or convert value to enum:
EnumType enumVar = any2enum(currencyFilter.selection());




Источник: http://daxonline.org/1690-extensible...cal-value.html
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsaxse: November 2018 Release – Dynamics AX2012 R3 update Blog bot DAX Blogs 0 15.11.2018 09:11
Быстродействие метда TaxParameters::find Ace of Database DAX: Программирование 7 01.06.2017 11:46
Platform updates overview - 3.70.B - NAV2009 R2 Blog bot Dynamics CRM: Blogs 0 07.02.2011 22:06
CRM DE LA CREME! Some more useful javascripts for MS CRM Blog bot Dynamics CRM: Blogs 0 04.05.2010 11:05
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 01:07.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.