$ude ("compile")

Compile development objects in the Repository.

$ude("compile", ObjectType, ObjectProfile {,"", OptionList} )

Example: vResult = $ude("compile", "component", "my*")

Parameters

Parameters
Parameter Data Type Description
ObjectType String List of development object types. See Object Types.
ObjectProfile String String specifying an object name or retrieve profile for one or more objects of type ObjectType
OptionList String Associative list containing one or more options that are appropriate to the operation or the ObjectType. See Options.

Arguments can also be a field, variable, or function that evaluates to a string or list.

Use

$ude("compile") requires a fully configured Repository to be available.

Note:  The $ude functions can only be used in components or applications that are run on Windows, and they rely on functionality that is provided in the ide.uar. To use $ude functions, run components and applications with ide.exe, or configure the application to include usys:ide.uar in its resources.

Allowed in all component types except self-contained Services.

Compiling Entities

The following instruction analyzes (compiles) a single entity and generates and entity descriptor file (.edc).

vResult  = $ude ("compile" ,"entity" , "Entity.Model" ,"")

The following instruction compiles all entities in MYMODEL:

vResult  = $ude ("compile" ,"entity" , "*.MYMODEL" ,"")

Compiling Components

The following instruction compiles all components beginning with my:

vResult = $ude("compile", "component", "my*, "", "messagelevel=0")

For example, this returns 0 in $result and the following in $procreturncontext:

Context=UDE Compile·;
InputComponents=4·;
OutputComponents=4·;
Infos=5·;
Warnings=19·;
Details=
 ID=1016·!·!·;
  MESSAGE=(Fields for) entity ENTITYEX not found in application model, generating now...·!·!·;
  SEVERITY=Warning·!·;
 ID=1043·!·!·;
  MESSAGE=Field CAL assumed maximum length of 40.·!·!·;
  SEVERITY=Warning·!·;
 ID=1043·!·!·;
  MESSAGE=Field SELDATE assumed maximum length of 40.·!·!·;
  SEVERITY=Warning·!·;
 ID=1016·!·!·;
  MESSAGE=(Fields for) entity BTNS not found in application model, generating now...·!·!·; 
  SEVERITY=Warning·!·;

...

Compiling Libraries and Global Objects

Libraries are typed, meaning each library can only contain one type of object. However, libraries of different types can have the same name.

Compile all French-language messages and help texts in all libraries (language=FRA):

vResult  = $ude ("compile", "message", "", "", "language=FRA;library=MyLib")

Compile all menus in the MyLib library:

vResult = $ude ("compile", "menu", "", "", "library=MyLib")

Compile all File menus, in all libraries:

$result = $ude ("compile", "menu", "file")

Compiling DTDs

vResult  = $ude("compile", "DTD", "myEntity", "", "model=myModel")
History
Version Change
10.3.01 Removed library as an ObjectType. It is accepted but does nothing.
9.1.01 Introduced

Related Topics