Salesforce

INIGetLn (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

INIGetLn (Magic xpa 4.x)

Lets the developer select a specific value from a line in a section in the Magic.ini file.

Syntax:

INIGetLn(section name,line number)

Parameters:

Section name (Alpha) – The name of the requested section.

Line number (Numeric) – The requested line in the section.

Returns:

Alpha – The Magic.ini requested section line string.

Examples:

INIGetLn ('[MAGIC_ENV]',3) Returns the value of line #3 from the MAGIC_ENV section of the Magic.ini file

INIGetLn (“[MAGIC_PRINTERS]”,1) You can use this function in Batch tasks using Counter(0) as a line number to read an entire section.

Note:

Returns an empty string when line<1.

Returns an empty string when Magic xpa comes to the first empty line.

Calling Arguments will be returned as the first lines of a Magic xpa section.

You cannot define a space as a delimiter.

See also:

The Online and Rich Client Samples projects (program EV06 and REV06)

Reference
Attachment 
Attachment