# Immediate Window can not set variables

**URL:** https://talk.remobjects.com/t/immediate-window-can-not-set-variables/26131
**Category:** Mercury
**Created:** [February 3, 2022, 7:27pm UTC](https://talk.remobjects.com/t/immediate-window-can-not-set-variables/26131 "2022-02-03T19:27:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [February 3, 2022, 7:27pm UTC](https://talk.remobjects.com/t/immediate-window-can-not-set-variables/26131/1 "2022-02-03T19:27:51Z")

</div>

In the immediate window, I can only get the value of a variable - In VB I was used to be able to set it too.

Take the following code:

```
Public Sub New
    Dim a As String
    WriteLn(a) '<- I have a breakpoint on this line
End Sub

```

In the Immediate Window, I type **?a**  
And the window give **nil** as response

Next I type **a = "somevalue"**  
And the window gives **false** as response - the variable has not been set

I would have expected that a would have the value “somevalue” after this last action.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 3, 2022, 8:05pm UTC](https://talk.remobjects.com/t/immediate-window-can-not-set-variables/26131/2 "2022-02-03T20:05:18Z")

</div>

Logged as [bugs://E25668](https://www.remobjects.com/portal/bugs/?id=E25668).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [February 16, 2022, 10:52am UTC](https://talk.remobjects.com/t/immediate-window-can-not-set-variables/26131/3 "2022-02-16T10:52:34Z")

</div>

[bugs://E25668](https://www.remobjects.com/portal/bugs/?id=E25668) was closed as fixed.
