---
title: "Parse Text specification"
canonical: "https://docs.cuesystem.com/space/CVCHELP/763527188/Parse%20Text%20specification"
format: markdown
---
> Macro (toc)

# Number

It specifies parsing of <u>[Byte](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Byte)</u>, <u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> and <u>[Double](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double)</u>. 

#### Syntax 

```visualbasic
"{N[SignSpecifier]}"
```

Note: Using **N** and **n** is equivalent. 

#### SignSpecifier 

|  |  |
| --- | --- |
| Values | Description |
| empty | For negative signed values appears "–", for positive does not appear anything. |
| h | A hexadecimal format of a conversion is used. The floatpartspecification must be empty. Lower characters "abcdef" are used. **This flag is ignored for Double type variables.** |
| H | A hexadecimal format of a conversion is used. The floatpartspecification must be empty. Upper characters "ABCDEF" are used. **This flag is ignored for Double type variables.** |
| b | A binary format of a conversion is used. The floatpartspecification must be empty. **This flag is ignored for Double type variables.** |

#### Example 

```visualbasic
Var n as long 

ParseText("123", "{n}", n) 
Debugprint(n) 
ParseText("-123", "{n}", n) 
Debugprint(n)
```

It prints to the debug window: 

```visualbasic
123 
-123
```

#### Example 

```visualbasic
Var n as long 

ParseText("7B", "{nh}", n) 
Debugprint(n) 
ParseText("1111011", "{nb}", n) 
Debugprint(n)
```

It prints to the debug window: 

```visualbasic
123 
123
```

#### Example 

```visualbasic
Var n as Double 
 
ParseText("123.456", "{n}", n) 
Debugprint(n)
```

It prints to the debug window: 

```visualbasic
123.456000
```

# Text

It specifies parsing of <u>[Text](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Text)</u>. 

#### Syntax 

```visualbasic
"{T[Conversion]}"
```

Note: Using **T** and **t** is equivalent. 

#### Character conversion 

|  |  |
| --- | --- |
| Character | Output format |
| none | No conversion. |
| "U" | To uppercase. |
| "L" | To lowercase. |

#### Example 

```visualbasic
Var txt as text[10] 

ParseText("Monday", "{t}", txt) 
Debugprint(txt) 
ParseText("Monday", "{tu}", txt) 
Debugprint(txt) 
ParseText("Monday", "{tl}", txt) 
Debugprint(txt)
```

It prints to the debug window: 

```visualbasic
Monday 
MONDAY 
monday
```