9 107 GET_FUNCTION_ATTR

LANSA Technical

9.107 GET_FUNCTION_ATTR

Þ Note: Built-In Function Rules.

Gets an attribute of a function definition that is being edited within an edit session previously started by using the START_FUNCTION_EDIT Built-In Function.

Attributes set or returned by this Built-In Function have the same editing and validation rules as the equivalent online facility provided in a full LANSA development environment.

Special Note: This Built-In Function provides access to very advanced facilities that basically allow RDML functions to construct new RDML functions.

This is a very specialized area that requires very good knowledge of the LANSA product. Use of this Built-In Function in a "commercial" application (e.g. Order Entry) is not normal and should not be attempted.

Þ This is a Specialized Built-In Function for use in a Development Environment only.

For use with

LANSA for i

YES

Do not use on IBM i in an RDMLX partition.

Visual LANSA for Windows

YES

 

Visual LANSA for Linux

NO

 

 

 

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Name of attribute to get

Valid attribute names are:

DESC- Function description

ONMENU - Display on Menu

MENUSQ - Menu sequence Number

TOTCMD - Total RDML commands (including comments)

EDTSRC - Associated editing source

1

10

 

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Return code

OK = operation completed

ER = fatal error detected

2

2

 

 

2

A

Req

Area in which to return the attribute. Allowable values are as follows

For attribute DESC:

The function description up to 40 characters in length.

For attribute ONMENU:

Y – Displayed on Menu

N – Not displayed on Menu

For attribute MENUSQ:

Valid number represented as 5 characters.

Range 00001 to 99999.

For attribute TOTCMD:

Valid number represented as 4 characters.

Range 0000 to 9999.

For attribute EDTSRC:

Character 3 editing source as the "source" field on the START_PROCESS_EDIT Built-In Function.

Value LAN or blanks indicates last editor was standard online RDML editor

1

256