# Replace Screen position value with new value - Step

**URL:** <https://techcommunity.softwareag.com/t/replace-screen-position-value-with-new-value-step/102257>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [February 9, 2013, 9:19pm UTC](https://techcommunity.softwareag.com/t/replace-screen-position-value-with-new-value-step/102257 "2013-02-09T21:19:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi\_Krishna](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@Vamsi\_Krishna](https://techcommunity.softwareag.com/u/Vamsi_Krishna)\
**Post date:** [February 9, 2013, 9:19pm UTC](https://techcommunity.softwareag.com/t/replace-screen-position-value-with-new-value-step/102257/1 "2013-02-09T21:19:11Z")

</div>

Hi All,

I am using Applinx 5.2

In one of our step i want to check the condition in a screen element like below

if the string is in \<\> and screen contains “BR1-D BR2-U BR3-U” value then we need to replace value like "BR2-U BR3-U " on the screen, same case if the screen contains “BR1-U BR2-D BR3-U” then we need to replace value like “BR1-U BR3-U” etc.

Is there any way we can split using space and store the value in array and see if last value is U or D ?

Appreicate your quick response

Regards,  
VV

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [February 10, 2013, 10:23am UTC](https://techcommunity.softwareag.com/t/replace-screen-position-value-with-new-value-step/102257/2 "2013-02-10T10:23:22Z")

</div>

Hello Mr. Krishna,

By using existing ‘String Helper’ expressions and some regular ‘Assignment’ and ‘Workflow’ nodes you can create a procedure that receives a string input and produces an array as an output.  
String Helper expressions:  
• Using the ‘strIn’ expression you can retrieve a position of a given string (in your case, space – " ")  
• Using the ‘subString’ expression you can extract strings from the original input, using given indexes  
‘Assignment’ and ‘Worflow’ nodes:  
• Using the ‘Object’ node you can create temporary variables to store temporary strings and index values  
• Using the ‘While’ node you can iterate over the string, checking the current index of the ‘space’ index

Also, we highly recommend to upgrade to ApplinX latest version (8.2), as version 5.2 is out of support.

Yours,

Gad Salner

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/replace-screen-position-value-with-new-value-step/102257/3 "2021-04-02T15:02:50Z")

</div>

Closed on April 2, 2021, 3:02pm UTC


