Kbase P41112: How to get the screen value of a CSComboBox OCX Control?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/8/2003 |
|
Status: Unverified
GOAL:
How to get the screen value of a CSComboBox OCX Control?
GOAL:
How do I get CSComboBox's "screen-value" if the value entered in the screen buffer is not part of its contents?
FIX:
In order to get the value that the user has entered in a combo box which is not found in its list, create a trigger for the CSComboBox's NewItem event and check the value of the ComboText parameter. e.g.:
PROCEDURE CtrlFrame.CSComboBox.NewItem .
/*------------------------------------------------------------------------------
Purpose:
Parameters: Required for OCX.
ComboText
KeepFocus
Notes:
------------------------------------------------------------------------------*/
DEFINE INPUT-OUTPUT PARAMETER p-ComboText AS CHARACTER NO-UNDO.
DEFINE INPUT-OUTPUT PARAMETER p-KeepFocus AS INTEGER NO-UNDO.
MESSAGE "Screen value is: " p-ComboText
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END PROCEDURE.