---
name: "DAT_ID"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/DAT_ID"
---

# DAT\_ID(3alleg)

Makes an ID value from four letters. Allegro game programming library.

## NAME

DAT\_ID - Makes an ID value from four letters. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**Macro DAT\_ID(a, b, c, d);**

## DESCRIPTION

Every object or property in a datafile is identified by a 4 letter ID, which can be created with this macro. For example, to access the NAME property of a datafile object, you could use:

```
   get_datafile_property(datob, DAT_ID('N','A','M','E'));
```

## SEE ALSO

[**register\_datafile\_object**(3alleg)](/register_datafile_object/3alleg.md), [**get\_datafile\_property**(3alleg)](/get_datafile_property/3alleg.md)
