---
title: "Constant values"
canonical: "https://docs.cuesystem.com/space/CVCHELP/498532601/Constant%20values"
format: markdown
---
> Macro (toc)

---

# Number constant value

A number constant is a decimal, hexadecimal or binary number.

#### Syntax

```visualbasic
DecimalNumber
&hHexadecimalNumber
&HHexadecimalNumber
&bBinaryNumber
&BBinaryNumber
```

#### Example

```visualbasic
128 // decimal integral
-345 // decimal negative integral
3.14159 // decimal floating point

&h80 // hexadecimal
&H2400 // hexadecimal

&b10000000 // binary
&B10111001 // binary
```

# Time constant value

#### Syntax of absolute time

```none
#mm/dd/yyyy hh:mm:ss#
#mm/dd/yyyy hh:mm:ss.cccccc#
```

mm=month, dd=day, yyyy=year, hh=hours, mm=minutes, ss=seconds, cccccc=hundredth of second

A hundredth of a second is optional. It is from one to six numbers (e.g. .1, .123, .123456).

#### Syntax of a time interval

```visualbasic
hh:mm:ss.cccccc
mm:ss.cccccc
:ss.cccccc
:.cccccc

hh:mm:ss
mm:ss
:ss
```

hh=hours, mm=minutes, ss=seconds, cccccc=hundredth of second

A hundredth of a second is optional. It is from one to six numbers (e.g. .1, .123, .123456).

#### Example

```none
#03/14/2009 12:35:05#
#02/26/2010 11:32:53.12#
#11/24/2010 10:51:44.123456#

12:12:24
12:12:24.123456
:1.153
```

# Char constant value

#### Syntax

```visualbasic
'C'
```

#### Example

```visualbasic
'A'
```

# Text constant value

The non-printable character can be entered as four hexadecimal number characters preceded by a sign \. Example: "\000A" is a Line feed character.

#### Syntax

```visualbasic
"Some text message"
```

#### Example

```visualbasic
"It's Monday today"
```

#### Example

```visualbasic
"First line\000ASecond line"
```

# ByteString constant value

The non-printable character can be entered as two hexadecimal number characters preceded by a sign \. Example: &S"\0A" is the Line feed.

#### Syntax

```visualbasic
&S"Some ByteString message"
```

#### Example

```visualbasic
&S"1234567890\ff"
```

#### Example

```visualbasic
&S"First line\0ASecond line"
```