write rapid data

patlepro
✭
At the click of a button, i would like to write the index of a combobox in a variable "NoProd" in the controller ?????????
Here is the code but it<s not finish....
private void btnProduction_click(object sender, EventArgs e)
{
int selectedIndex = cbxChoix.SelectedIndex;
Object selectedItem = cbxChoix.SelectedItem;
MessageBox.Show("Selected Item Text: " + selectedItem.ToString() + "
" +
"Index: " + selectedIndex.ToString());
RapidData rd = aController.Rapid.GetRapidData("T_ROB1", "MainModule", "NoProd");
????? like rd.value = selectedIndex; but it doesn't work.
}
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 11 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings