# RapidDatabinding source "FP SDK 5.14"

**URL:** <https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471>\
**Category:** Developer Tools\
**Created:** [October 17, 2011, 4:33pm UTC](https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471 "2011-10-17T16:33:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hydron](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@Hydron](https://tech-community.robotics.abb.com/u/Hydron)\
**Post date:** [October 17, 2011, 4:33pm UTC](https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471/1 "2011-10-17T16:33:51Z")

</div>

Hello. I am to developing an aplication in c# to make some changes to rapid data more faster.

My problem is that i already have many modules, that basicly are the same program , but have diferent data values, so when i drag rapiddatabindingsource to designer, i need to enter task, module and, variable names, but since i want my application to work with all the other modules this doesnA’t work. All the other modules have the same task and variable names.  
Any ideas?? Thanks…

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [October 21, 2011, 8:58am UTC](https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471/2 "2011-10-21T08:58:29Z")

</div>

Hi hydron,

Could you do some screenshots to describe the problem, or some code?

IF I understand your problem, couldn’t you have a list with all the different modules, [like this](http://forums.robotstudio.com/forum_posts.asp?TID=5242), so the user selects the module to work with, then whenever that is changed change the rapiddatabinder to accomodate?

---

<div class="post-metadata">

**Author:** ![Hydron](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@Hydron](https://tech-community.robotics.abb.com/u/Hydron)\
**Post date:** [November 2, 2011, 12:43pm UTC](https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471/3 "2011-11-02T12:43:17Z")

</div>

Thank you very much.  
I think that should do, Ill try code

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [November 7, 2011, 2:29pm UTC](https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471/4 "2011-11-07T14:29:06Z")

</div>

Hi

Regarding your other questions.First go through the FlexPendant SDK Application manual chapter:  
“Using the FlexPendant SDK - Using the Controller API - Accessing the controller”, there you will find the code examples you need.

Also when it comes to the databinding, remember to utilize the  
SuspendBinding/ResumeBinding  
when the user switches focus and/or modules.

---

<div class="post-metadata">

**Author:** ![Hydron](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@Hydron](https://tech-community.robotics.abb.com/u/Hydron)\
**Post date:** [November 9, 2011, 6:21pm UTC](https://tech-community.robotics.abb.com/t/rapiddatabinding-source-fp-sdk-5-14/4471/5 "2011-11-09T18:21:54Z")

</div>

Ok.

Thank you very mutch, I was able to make it work with this code.  
Private Sub Button1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim TaskName As String = “T\_ROB1”

Dim modulantal As Integer = robotController1.Rapid.GetTask(TaskName).GetModules.Length

ComboBox1.Items.Clear()

For i = 0 To modulantal - 1

Dim modul As RapidDomain.Module = robotController1.Rapid.GetTask(TaskName).GetModules(i)

ComboBox1.Items.Add(modul.Name)

Next

ComboBox1.SelectedIndex = 0

End Sub

Private Sub ComboBox1\_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged

TextBox1.Text = ComboBox1.Text

End Sub

Now i need a code or an example to add a checkbox and with that checkbox change the value of a boolean variable from true to false.  
That variable is stored on the module that i choose from the combobox (ComboBox1.Text)

Best regards
