Показать сообщение отдельно
Старый 09.08.2004, 17:50   #4  
Rungart is offline
Rungart
Участник
 
491 / 12 (1) ++
Регистрация: 13.01.2003
Адрес: Украина
Example
This example shows how to use the dialog.OPEN function.

<div class='CALtop'>C/AL</div><div class='CAL'>AccountInfo := Text000 +
Text001;
AccNo := 5634;
TotSum := 1000;
d.OPEN(AccountInfo, AccNo, TotSum);
// Opens a window with '#'-fields for Account no. and Total
d.UPDATE(); // Update the fields
d.CLOSE()</div>

Create the following text constants in the C/AL Globals window:

Text Constant
ENU Value

Text000
'Account no. #1######,\'

Text001
'shows a total of $ #2######'


The system will open the dialog window and show this text:

Account no. 5634
shows a total of $ 1000

This shows that the system has formatted the values of the variables AccNo and TotSum into the '#'-fields.
__________________
Русский человек славится своим умением находить выход из самых трудных ситуаций, но еще более он славится своим умением находить туда вход.