C4 Engine
C4 Engine API Documentation

PasswordWidget::GetPassword

Defined in:  C4Widgets.h
Returns the password entered into the editable text box.
Prototype

const PasswordString& GetPassword(voidconst;

Description
The GetPassword function returns a reference to the password string stored in a password widget. The PasswordString type is defined as a String object with a maximum length of 63 bytes.

The TextWidget::GetText function cannot be used to retrieve the password because the string displayed to the user is only filled with dots.