# String Pos

**URL:** https://www.finalbuilder.com/forums/t/string-pos/3390
**Category:** Bugs
**Created:** [August 29, 2011, 6:14am UTC](https://www.finalbuilder.com/forums/t/string-pos/3390 "2011-08-29T06:14:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![finalbuilder](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/d07c76/32.png) [@finalbuilder](https://www.finalbuilder.com/forums/u/finalbuilder)
#### Post date: [August 29, 2011, 6:14am UTC](https://www.finalbuilder.com/forums/t/string-pos/3390/1 "2011-08-29T06:14:59Z")

</div>

Hello Support Team,

The String Pos action sets the output variable to 0 in any case the input text is empty.

In general an output variable of 0&nbsp;indicates the input string starting with the search string.

Please refer to the attached project.

Would you mind to set the output variable to -1 to become the output variable meaningful without the vecessarity to also check the input string?

Thanks in advance

Michael

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [August 30, 2011, 1:13am UTC](https://www.finalbuilder.com/forums/t/string-pos/3390/2 "2011-08-30T01:13:57Z")

</div>

Hi Michael   
  
 I have checked in a fix for this, I will post the new build here shortly.   
  
 Regards,   
 Steve

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [August 30, 2011, 5:41am UTC](https://www.finalbuilder.com/forums/t/string-pos/3390/3 "2011-08-30T05:41:59Z")

</div>

Hi Michael,   
  
 This issue is fixed in the following build: [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1515.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1515.exe)   
  
 The output variable will now be set to -1 when the start index is greater than the length of the string.   
  
 Regards,   
 Steve
