BIS fnc validateParametersOO: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (pf)
Line 1: Line 1:
 
{{Function|Comments=
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| Validating the parameters of a certain method in a class. |Description=
/*
____________________________________________________________________________________________
File: fn_validateParametersOO.sqf
 
Description:
Validating the parameters of a certain method in a class


Parameter(s):
| [class,method,params] call [[BIS_fnc_validateParametersOO]] |Syntax=
_this select 0: String (class name)
_this select 1: String (method name)
_this select 2: Any (to-be-validated parameters)
Returns:
validation flag: Boolean
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p1= class: [[String]] - Class name |Parameter 1=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_validateParametersOO]]; --> |= Syntax
|p2= method: [[String]] - Method used for validating (Taken from '''class >> "Methods"''') |Parameter 2=


|p1= |= Parameter 1
|p3= params: [[Array]] - To be validated parameters |Parameter 3=


| |= Return value
| [[Boolean]] - Validating flag |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= ["someClass","someMethod",[5,47,"test"]] [[call]] [[BIS_fnc_validateParametersOO]];|Example 1=
 
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[BIS_fnc_addClassOO]], [[BIS_fnc_createObjectOO]] |See also=
 
}}
}}



Revision as of 10:49, 20 June 2018

Hover & click on the images for description

Description

Description:
Validating the parameters of a certain method in a class.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[class,method,params] call BIS_fnc_validateParametersOO
Parameters:
class: String - Class name
method: String - Method used for validating (Taken from class >> "Methods")
params: Array - To be validated parameters
Return Value:
Boolean - Validating flag

Examples

Example 1:
["someClass","someMethod",[5,47,"test"]] call BIS_fnc_validateParametersOO;

Additional Information

See also:
BIS_fnc_addClassOOBIS_fnc_createObjectOO

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section