company logo

ControlContext :: getString - Get text from text dialog

The function pops up with a text dialog, which displays the text passed in sTitle the title bar and the text passed in sLabel above the edit field. The text field is initialized with the data passed in rText.

The function returns the text from the text field in rText. The function returns true, when the user terminates the dialog with OK and false, when the dialog has been canceled.

GetString("Enter your password","password",pwd);

Return value:  State of function return ( bool  )

A State true indicates, that the function was executed successfully. Otherwise state is false.

Implementation details

bool ControlContext  :: getString ( odaba::String &sTitle, odaba::String &sLabel, odaba::String &rText )
  • sTitle - Title for window or control
  • sLabel - Control label

    The label (caption) is passed as string.

  • rText - Text string