• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

GetProfileString

Synopsis

                    GetProfileString(inipath, section, entry)

Returns entry from section of the initialization file specified in inipath. Initialization files are used to set operating system and application-specific variables during system boot or application launch. Initialization files can be identified by their .ini file extension. Here’s an example that returns a profile string from one of ColdFusion’s initialization files:

<cfset MyPath = "c:\winnt\odbc.ini">
<cfset MySection = "cfsnippets">
<cfset MyEntry = "driver32">
   
<cfoutput>
<b>Path:</b> #MyPath#<br>
<b>Section:</b> #MySection#<br>
<b>Entry:</b> #MyEntry#<br>
<p><b>Profile String:</b> #GetProfileString(MyPath, MySection, MyEntry)#
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint