|Description:||Strips the file extension from the given path. Both the path without the extension and the stripped extension are returned.|
|Syntax:||[filePath] call fn_vbs_stripExtension|
|Return Value:||Array - [path without extension, extension]|
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.
_result = ["\vbs2\ui\tacticmarkers\data\frames\friend_units.paa"] call fn_vbs_stripExtension; // _result is ["\vbs2\ui\tacticmarkers\data\frames\friend_units","paa"]
_result = ["\vbs2\ui\tacticmarkers\data\frames\friend_units"] call fn_vbs_stripExtension; // _result is ["\vbs2\ui\tacticmarkers\data\frames\friend_units",""]