Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

CFunction.SetArray

Sets values of an array.

Component Version macOS Windows Linux Server iOS SDK
CFunction 10.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CFunction.SetArray"; FunctionRef; Index; Type; List )   More

Parameters

Parameter Description Example
FunctionRef The reference number for the function. $func
Index The index for the parameter.
Range is 0 to CFunction.ParameterCount-1.
0
Type The data type to use. "f"
List The list of values. "1¶2¶3"

Result

Returns OK or error.

Description

Sets values of an array.
Please pass a list of values to fill the array.
See table below for valid types.

TypeNameSizeDescription
BBOOL4Boolean value
cchar1signed 8 bit value
Cunsigned char1unsigned 8 bit value
sshort2signed 16 bit value
Sunsigned short2unsigned 16 bit value
iint4signed 32 bit value
Iunsigned int4unsigned 32 bit value
jlong4 or 8for Windows 32-bit value, for MacOS and Linux 64-bit value
Junsigned long4 or 8for Windows 32-bit value, for MacOS and Linux 64-bit value
llong long8signed 64 bit value
Lunsigned long long8unsigned 64 bit value
ffloat4floating point number in 32-bit size
ddouble8floating point number in 64-bit size
ppointer4 or 8pointer in 32 or 64-bit.

Examples

Set array of float values:

MBS( "CFunction.SetArray"; $function; 0; "f"; 1 & ¶ & 2 & ¶ & 3 )

See also

Created 25th April 2020, last changed 25th April 2020


CFunction.ReturnType - CGImageSource.ClearProperties

Feedback: Report problem or ask question.