# Wrong constant in VBScript?

**URL:** https://www.finalbuilder.com/forums/t/wrong-constant-in-vbscript/6872
**Category:** Bugs
**Created:** [October 8, 2020, 2:06pm UTC](https://www.finalbuilder.com/forums/t/wrong-constant-in-vbscript/6872 "2020-10-08T14:06:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![service](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@service](https://www.finalbuilder.com/forums/u/service)
#### Post date: [October 8, 2020, 2:06pm UTC](https://www.finalbuilder.com/forums/t/wrong-constant-in-vbscript/6872/1 "2020-10-08T14:06:21Z")

</div>

Action “Set Registry Value”

`Action.RegValType = rtExpandString`  
returns an error

> Error Executing script : AfterAction  
> Laufzeitfehler in Microsoft VBScript  
> Typenkonflikt: ‘Action.RegValType’

but this works  
`Action.RegValType = rtString`

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 8, 2020, 9:09pm UTC](https://www.finalbuilder.com/forums/t/wrong-constant-in-vbscript/6872/2 "2020-10-08T21:09:21Z")

</div>

It’s a bug, rtExpandString was not registered with the scripting engine (it was probably added after the others and the dev forgot about scripting support).

You can work around it for now by replacing it with it’s value : 4

This will be fixed in the next update.
