---
title: Core Library Extension
slug: develop/core-library-extension
docTags: 
createdAt: 2025-03-11T07:07:17.199Z
---

There are a number of built-in functions that are not part of the BrightScript Core Library. You can use the [LIBRARY](docId\:xjNCz5P2xsv5j9GEofi13) statement to include this subset of functions:

```text
LIBRARY "v30/bslCore.brs"
```

### bslBrightScriptErrorCodes() As roAssociativeArray

Returns an associative array of name/value pairs corresponding to BrightScript error codes and their descriptions.

### bslGeneralConstraints() As roAssociativeArray

Returns an associative array of name/value pairs corresponding to system constants.

### bslUniversalControlEventCodes() As roAssociativeArray

Returns an associative array of name/value pairs corresponding to the remote key code constraints.

### AsciiToHex(ascii As String) As String

Returns a hex-formatted version of the passed ASCII string.

### HexToAscii(hex As String) As String

Returns an ASCII-formatted version of the passed hex string.

### HexToInteger(hex As String) As Integer

Returns the integer value of the passed hex string.
