PasswordCtrl_ConvertFromString
- Updated2023-02-21
- 6 minute(s) read
int PasswordCtrl_ConvertFromString (int panel, int stringControlToConvert);
Purpose
This function converts an existing string control into a password control.
While you can call PasswordCtrl_Create to create a password control from scratch, it can be more convenient to create and position a string control on a panel in the user interface editor and use this function to convert the string control to a password control after the panel is loaded.
Parameters
| Input | ||
| Name | Type | Description |
| panel | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
| stringControlToConvert | int | Specifies the string control on the panel that will be converted into a password control. Pass the defined constant (located in the UIR header file) which was assigned to the string control in the User Interface Editor, or an ID returned by the NewCtrl or DuplicateCtrl function. |
Return Value
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| passwordControl | int | Returns the ID used to specify this control in subsequent function calls. Negative values indicate that an error occurred. If the function succeeds, it will return the same ID that was passed in for the stringControlToConvert parameter. This means that if the stringControlToConvert was specified using a defined constant (from the UIR header file) which was assigned to the string control in the User Interface Editor, then this constant can now be used to refer to the password control.
|
Additional Information
Library: Password Control
Include file: custctrl\pwctrl.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later
