APP_IniFIle

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Application functions >

APP_IniFIle

 

Description

 

Returns the full path and file name of a possible INI file determined by script or bundled executable file name.

 

Syntax

 

s = APP_IniFile

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

none




 

Remarks

 

Very often an application has an INI configuration file used to store parameters like initial startup values to initialize application objects.

It has usually the same name of the application but with .INI extension

 

This function return the file name of the INI file using application and path and name, removing application extension and changing it with INI

 

Examples:
 

1.if the application is like C:\MyApplications\MyApp\MyApp.exe
App_InifIle will return the string C:\MyApplications\MyApp\MyApp.ini
 

2.if the application is like C:\MyApplications\MyApp\MyApp.tbasic
App_InifIle will return the string C:\MyApplications\MyApp\MyApp.ini

 

 

Restrictions

 

See also

 

App Object,

 

Examples