Movatterモバイル変換


[0]ホーム

URL:


Add/edit function parameter dialog

TheAdd/Edit Function Parameter dialog allows you to change the details of afunction parameter. Since function parameters work similarly tolocal variables, the dialog is also similar to theAdd/edit event variable dialog.

The Add/edit function parameter dialog

The dialog has the following fields.

Name
The name identifies the function parameter. This is typed in toexpressions to retrieve the value of the parameter. Some names cannot be used, like the names of system expressions, since they would conflict when entering an expression. The name is also displayed when calling the function.
Type
The type specifies what kind of value the parameter holds. This can beNumber,String (text), orBoolean (an on/off value, displayed as a checkbox). The type of a parameter does not change - you can't pass text for a number variable and vice versa.
Once you create events that call the function, its parameter types cannot be changed, since that could make the events invalid.
Initial value
The initial number for aNumber parameter, the initial text for aText parameter, or a checkbox for aBoolean variable to specify if it is initially true (checked) or false (unchecked). Note that unlike expressions, the initial text entered here doesnot need double quotes around it. In other words,Hello is a valid entry, and if you enter"Hello" (as you would in an expression) the initial string will include the double quotes. The default parameter value is pre-filled when calling the function, or used if the function ends up being called with missing parameters.
DescriptionOptional
An optional comment you can use to briefly describe what the parameter is used for. It is displayed in the editor when calling the function to help remind you what to use the variable for.
Construct 3 Manual2023-04-06

You are here:

Search this manual:

Search this manual
This manual entry was last updated on 6 Apr, 2023 at 11:26

On this page


[8]ページ先頭

©2009-2025 Movatter.jp