configName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "‎" to "")
 
(76 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CONFIGNAME]]
{{RV|type=command
[[Category:Scripting Commands ArmA|CONFIGNAME]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''''' configName ''config'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''config:''' [[Config]]
|game5= arma3
|version5= 0.50


|gr1= Config


'''Type of returned value:'''
|descr= Returns name of config entry.


[[String]]
|s1= [[configName]] config


'''Compatibility:'''
|p1= config: [[Config]]


Version 2.53 required.
|r1= [[String]]


'''Description:'''
|x1= <sqf>_name = configName (configFile >> "CfgVehicles"); // result is "CfgVehicles"</sqf>


Returns name of config entry.
|seealso= [[configFile]] [[a / b]] [[config greater greater name|config >> name]] [[count]] [[getArray]] [[getText]] [[getNumber]] [[inheritsFrom]] [[isArray]] [[isClass]] [[isNumber]] [[isText]] [[select]]
 
}}
'''Example''':
 
_name = '''configName''' (configFile >> "CfgVehicles") , result is "CfgVehicles"

Latest revision as of 12: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