Показать сообщение отдельно
Старый 05.11.2013, 13:31   #11  
InTacto is offline
InTacto
Участник
Аватар для InTacto
 
323 / 11 (1) +
Регистрация: 09.08.2005
Пример из справки />

These examples show how to use the GETRANGEMIN function.

With a filter which is a single range:

Код:
Customer.SETFILTER("No.",'100..200');
Val := Customer.GETRANGEMIN("No.");
MESSAGE(Text000', Val);
The message window shows:

The minimum value is: 100

With a filter which is single value:

Код:
Customer.SETFILTER("No.",'100');
Val := Customer.GETRANGEMIN("No.");
MESSAGE(Text000, Val);
Create the following text constant in the C/AL Globals window:

Text Constant
ENU Value

Text000
'The minimum value is: %1'


The message window shows:

The minimum value is: 100

With a filter which is not a single range:

Код:
Customer.SETFILTER("No.",'200|300');
Val := Customer.GETRANGEMIN("No.");
This code causes a run-time error to occur.