PA API (8.5)

PA API (8.5)

PA: Profile Access

This API can be used to retrieve or update an individual field from a configuration file such as EL850S.CFG or EL850U.CFG.

Screen Parameters: PA,FN,Section

Input:

FN = RD to read, UP to update

Section = Configuration file section (required) -- Note: You must include path information.

Screen-Menu = file, e.g., M:\Elliott8\Bin85\EL850.CFG (required - maximum of 80 characters)

Screen-Literal = Key name for the section (required)

Screen-Alpha-Field = update value (for FN=UP only)

Output:

Screen-Alpha-Field = Key value if successful 

Screen-Answer = ā€œYā€ if successful, ā€œNā€ if not

If not successful, Screen-Alpha-Field will contain spaces.

Note:  The file name must include path information, even if it is just ".\filename.ext".  This is because the Windows APIs used will read from and write to a system directory (instead of the current directory) if the filename does not include any path information.


JEG




    • Related Articles

    • ID API

      Release Date: 3/19/2019 The ID API will return the current Help ID (the current major Application program running in Elliott): MOVE "ID" TO SCREEN-PARAMETERS. PERFORM SCREEN-ROUTINE. MOVE SCREEN-ALPHA-FIELD TO MY-LOCAL-HELP-ID. In certain situations, ...
    • AP API

      AP API This API returns various values from the Shared Memory Area. For example: MOVE "AP" TO SCREEN-PARAMETERS MOVE "EDITOR" TO SCREEN-LITERAL PERFORM SCREEN-ROUTINE This returns the user’s preferred Editor in SCREEN-ALPHA-FIELD. The following ...
    • LF API

      Release Date: 9/7/2021 Versions: 8.0 and higher This API takes a filespec, like C:\WINDOWS\*.*, and returns the next file in the specified directory for each successive call. Screen Parameters Comment LF,nn Input: SCREEN-LITERAL contains the ...
    • CV API

      Release Date: 10/31/2019 This API allows the programmer to determine whether or not thie current company's .DAT files have been converted to .BTR files. Screen-Parameters: CV Check the converted status for the current company. CV,nn Check the ...
    • LN API

      Release Date: 5/17/17 LN: Length of String The LN API allows the developer to pass a string with a maximum length of 4000 bytes. The system will determine the position of the last non-space character in the string and pass the position back through ...