# Using confuses code completion

**URL:** https://talk.remobjects.com/t/using-confuses-code-completion/27958
**Category:** Fire
**Created:** [February 25, 2023, 6:48pm UTC](https://talk.remobjects.com/t/using-confuses-code-completion/27958 "2023-02-25T18:48:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [February 25, 2023, 6:48pm UTC](https://talk.remobjects.com/t/using-confuses-code-completion/27958/1 "2023-02-25T18:48:36Z")

</div>

Hi,  
I have the following

```auto
  var obj := new SomeClass;
  
  using obj2 := obj.Build do
  begin
    //obj.
    //obj2.DoIt;
  end;

```

inside the begin end if I try and complete obj it cant find build

 ![Screenshot 2023-02-25 at 1.45.53 PM](https://talk.remobjects.com/uploads/default/original/3X/6/8/686bb00c26cd8e2012d52b351aaf7d00696c7163.png)

and if I try and find obj2 it doesnt show up in code completion

 ![Screenshot 2023-02-25 at 1.47.04 PM](https://talk.remobjects.com/uploads/default/original/3X/9/a/9aaaf4ee0062a31844e1bca0b4c9e3edfaf0ef43.png)  
[UsingConsoleApplication.zip](https://talk.remobjects.com/uploads/short-url/3l48xsNPwKpwQu7SwdLEFXWgNvS.zip) (148.9 KB)

Cheers,  
John

---

<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 25, 2023, 7:12pm UTC](https://talk.remobjects.com/t/using-confuses-code-completion/27958/2 "2023-02-25T19:12:19Z")

</div>

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

---

<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: [March 2, 2023, 11:19am UTC](https://talk.remobjects.com/t/using-confuses-code-completion/27958/3 "2023-03-02T11:19:19Z")

</div>

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