SetFilePath Data Member Function

Sets the file path at the specified index. The maximum index is defined by the AppScaffoldPathIndex enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.

Prototype

int32 SetFilePath( int32 p_nIndex, string p_sFilePath )

Parameters

Parameter Type Parameter Name Documentation
int32p_nIndexThe index of the file path to set. The maximum index is defined by the AppScaffoldPathIndex enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL.
stringp_sFilePathThe file path value such as "..\DIRECTORY1\DIRECTORY2\FILE.EXT".

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "type_service_select_util.ssl";

auto StrList a_slPaths;
a_slPaths.Add( ".\v0_shader.xml" );
a_slPaths.Add( ".\shader_icon.ico" );
a_slPaths.Add( ".\shader_splash_screen.bmp" );
a_slPaths.Add( ".\shader_default.box" );
a_slPaths.Add( ".\v0_scripts.xml" );

AppScaffoldNode a_oNode = LibSelect.FirstAppScaffoldNode();

for( int i = 0; i < a_oNode.GetCount(); ++i )
{
   a_oNode.SetFilePath( i );
}