DataType

# OSType

<div class="rst-class">

forsearch

</div>

DataType

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

A 4-byte integer known as a "fourcharcode," is typically used only on OS X or when declaring into QuickTime. If you pass a string of four characters via this data type, it is automatically converted into a four char code `Integer</api/data_types/integer>`. Also, <span class="title-ref">OSType</span> does an implicit type conversion to `String</api/data_types/string>` when you assign an <span class="title-ref">OSType</span> to a `String</api/data_types/string>` variable. Note that the `String</api/data_types/string>` "" is converted to the <span class="title-ref">OSType</span> '????'.

## Notes

Although this type is available on iOS, it cannot currently be used for anything as you cannot convert it to/from `String</api/data_types/string>`.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Declare</api/language/declare>` statement

</div>
