Hi I wanted to know if there was a way to get an ordinary Dialog variable to display an OK-button, when using the OPEN command and INPUT for the feedback from the user. The code is more or less this : Dialog.OPEN(‘Value of item #1#######’, Value); REPEAT Return := Dialog.INPUT( 1, Value ); UNTIL (( Return = 0 ) OR ( Value > 0 )); Henrik
I believe the answer to the Button question is “no” but I think the behavior of the dialog box when you escape from the box is what you wanted to achieve with the button. The following is copied from the Help for d.INPUT: NewControlID := d.INPUT([ControlID][,Variable]) NewControlID Data type: integer The control ID of the next field in the window. If the user presses Esc to leave the window, the window will close and the calling C/AL code will terminate, and zero is returned Dave Studebaker firstname.lastname@example.org Liberty Grove Software A Navision Services Partner
I was afraid of that. Thank you anyway.