# Action.Parent method not working

**URL:** https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589
**Category:** Discussion
**Created:** [September 9, 2010, 8:48am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589 "2010-09-09T08:48:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lsondergaard](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lsondergaard](https://www.finalbuilder.com/forums/u/lsondergaard)
#### Post date: [September 9, 2010, 8:48am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589/1 "2010-09-09T08:48:45Z")

</div>

Hi,

Using FB&nbsp;7.0.0.515

In the BeforeAction event of an Action Group action I use the code (VBScript)

Set MyParent = Action.Parent()

This returns the error: "Object doesn't support this property or method: 'Action.Parent'"

The Action Group is a child of another action group, so there is a parent.

According to the online help it should return the parent action.

&nbsp;

---

<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: [September 9, 2010, 2:00am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589/2 "2010-09-09T02:00:18Z")

</div>

Thanks, fixed in this build :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_657.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_657.exe)

---

<div class="post-metadata">

### Author: ![lsondergaard](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lsondergaard](https://www.finalbuilder.com/forums/u/lsondergaard)
#### Post date: [September 9, 2010, 2:47am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589/3 "2010-09-09T02:47:58Z")

</div>

Wow, that was fast 001\_FBParentAndLocalVarProblem.fbp7 (31.336 KB)

---

<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: [September 10, 2010, 1:54am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589/4 "2010-09-10T01:54:49Z")

</div>

My apologies, forgot to check in one file before building, this build has the fix (just tested to be sure!) :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_664.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_664.exe)

---

<div class="post-metadata">

### Author: ![lsondergaard](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lsondergaard](https://www.finalbuilder.com/forums/u/lsondergaard)
#### Post date: [September 10, 2010, 10:19am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589/5 "2010-09-10T10:19:38Z")

</div>

No problem. Happens to us all 🙂   
  
 Just tested and now it works. Thank you.   
  
 Still see the problem with the local variables and “No variables match” hint reported in other thread. Same sample project should show you the problem. (Not urgent at all )

---

<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: [September 13, 2010, 4:49am UTC](https://www.finalbuilder.com/forums/t/action-parent-method-not-working/1589/6 "2010-09-13T04:49:47Z")

</div>

Ok, I see what you mean. The problem is that the internal service that parses the text doesn’t know about local variables. I’ll see what we can do…
