# Keep variable value between program runs

**URL:** <https://forum.universal-robots.com/t/keep-variable-value-between-program-runs/2227>\
**Category:** URCap Development\
**Created:** [July 3, 2018, 7:35am UTC](https://forum.universal-robots.com/t/keep-variable-value-between-program-runs/2227 "2018-07-03T07:35:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 3, 2018, 10:52am UTC](https://forum.universal-robots.com/t/keep-variable-value-between-program-runs/2227/7 "2018-07-03T10:52:32Z")

</div>

did you try to use the ClientSendScript Class to solve this?:

> [@Can urcap send and execute ur script within the program node?](https://forum.universal-robots.com/t/can-urcap-send-and-execute-ur-script-within-the-program-node/378/12):
>
> In this example, a custom popup is sent to the secondary client, when the method createPopup(message) is called. package com.ur.urcap.yourUrCap.impl; import java.io.DataOutputStream; import java.io.IOException; import java.net.Socket; public class clientSendScript { public clientSendScript() { } // localhost IP private String TCP\_IP = "127.0.0.1"; // Port for secondary client private int TCP\_port = 30002; // Public method to send popup script to client interface public void creat…

---

_[View the full topic](https://forum.universal-robots.com/t/keep-variable-value-between-program-runs/2227)._
