# global insanity

**URL:** <https://forum.servoy.com/t/global-insanity/3831>\
**Category:** Classic Servoy\
**Created:** [March 9, 2005, 7:04pm UTC](https://forum.servoy.com/t/global-insanity/3831 "2005-03-09T19:04:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [March 9, 2005, 7:04pm UTC](https://forum.servoy.com/t/global-insanity/3831/1 "2005-03-09T19:04:02Z")

</div>

I cannot figure out why I cannot set the value of 2 globals via an argument. It works fine for one or the other global.

if (tableA\_to\_tableB.My\_Field == ‘Bill’)  
{  
return globals.Txt1 = ‘A’  
return globals.Txt2 = ‘A’  
}

What am I missing. Seems pretty straight forward

---

<div class="post-metadata">

**Author:** ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)\
**Post date:** [March 9, 2005, 7:23pm UTC](https://forum.servoy.com/t/global-insanity/3831/2 "2005-03-09T19:23:10Z")

</div>

looks like bad syntax

if (tableA\_to\_tableB.My\_Field == ‘Bill’)  
{  
globals.Txt1 = ‘A’ **;**  
globals.Txt2 = ‘A’  
}
