configName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "‎" to "")
 
(73 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{ArmA-disclaimer}}
{{RV|type=command


{{Command|= Comments
|game1= arma1
____________________________________________________________________________________________
|version1= 1.00


| arma |= Game name
|game2= arma2
|version2= 1.00


|2.35|= Game version
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| Returns name of config entry. |= Description
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


| '''configName''' config |= Syntax
|game5= arma3
|version5= 0.50


|p1= config: [[Config]] |= Parameter 1
|gr1= Config


| [[String]] |= Return value
|descr= Returns name of config entry.
____________________________________________________________________________________________
 
|x1= <pre>_name = configName (configFile >> "CfgVehicles") , result is "CfgVehicles"</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|s1= [[configName]] config


}}
|p1= config: [[Config]]


<h3 style="display:none">Notes</h3>
|r1= [[String]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_name = configName (configFile >> "CfgVehicles"); // result is "CfgVehicles"</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[configFile]] [[a / b]] [[config greater greater name|config >> name]] [[count]] [[getArray]] [[getText]] [[getNumber]] [[inheritsFrom]] [[isArray]] [[isClass]] [[isNumber]] [[isText]] [[select]]
 
}}
[[Category:Scripting Commands|CONFIGNAME]]
[[Category:Scripting Commands ArmA|CONFIGNAME]]

Latest revision as of 11:53, 26 April 2023

Hover & click on the images for description

Description

Description:
Returns name of config entry.
Groups:
Config

Syntax

Syntax:
configName config
Parameters:
config: Config
Return Value:
String

Examples

Example 1:
_name = configName (configFile >> "CfgVehicles"); // result is "CfgVehicles"

Additional Information

See also:
configFile a / b config >> name count getArray getText getNumber inheritsFrom isArray isClass isNumber isText select

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