Skip to main content
Version: v19 R8 BETA

Componentes

A 4D component is a set of 4D code and forms representing one or more functionalities that you can install and use in your projects. For example, the 4D SVG component adds advanced commands and an integrated rendering engine that can be used to display SVG files.

Where to find components?

Several components are preinstalled in the 4D development environment, but a lot of 4D components from the 4D community can be found on GitHub. Additionnally, you can develop your own 4D components.

Installing components

To install a component, you simply need to copy the component files into the Components folder of the project. You can use aliases or shortcuts.

A host project running in interpreted mode can use either interpreted or compiled components. A host project running in compiled mode cannot use interpreted components. In this case, only compiled components can be used.

Using components

Exposed component code (methods and functions) as well as forms can be used as standard elements in your 4D development.

When an installed component contains methods, classes, and functions, they appear in the Component Methods theme of the Explorer's Methods page:

alt-text

nota

If the component is compiled, its namespace is written between parentheses after its name. Use this namespace to access the component's functions.

You can select a component project method or class and click on the Documentation button of the Explorer to get information about it, if any.

alt-text