Basic Input Functions
- Last UpdatedNov 24, 2023
- 1 minute read
|
int_req(Message, InitValue) |
||
|
The function presents a box with a message and lets the user key in an integer. |
||
|
Input parameters: |
||
|
Message |
string |
The message (max 512 characters) |
|
InitValue |
integer |
The predefined value (optional) |
|
Returned value: |
||
|
[0] |
integer |
User Response |
|
[1] |
integer |
The resulting integer |
|
Exceptions: |
||
|
kcs_ValueError |
Invalid parameter value |
|
|
real_req(Message, InitValue) |
||
|
The function presents a box with a message and lets the user key in a real. |
||
|
Input parameters: |
||
|
Message |
string |
The message (max 512 characters) |
|
InitValue |
real |
The predefined value (optional) |
|
Returned value: |
||
|
[0] |
integer |
User Response |
|
[1] |
real |
The resulting real |
|
Exceptions: |
||
|
kcs_ValueError |
Invalid parameter value |
|
|
string_req(Message, InitValue) |
||
|
The function presents a box with a message and lets the user key in a string. |
||
|
Input parameters: |
||
|
Message |
string |
The message (max 512 characters) |
|
InitValue |
string |
The predefined value (optional, max 512 characters) |
|
Returned value: |
||
|
[0] |
integer |
User Response |
|
[1] |
string |
The resulting string (max 512 characters) |
|
Exceptions: |
||
|
kcs_ValueError |
Invalid parameter value |
|
|
Example: |
||
|
# Example: kcs_ex_ui5.py |
||