8/9/2023 7:08 AM | |
Joined: 9/4/2018 Last visit: 3/11/2024 Posts: 58 Rating: (0) |
Hi, My project is developed in WinCC 7.5 SP2. I'm displaying data from SQL Table to MSHFlexGrid. It is working successfully. But if I click on some row, some times, I'm getting previous row data or next row data. If I restart Runtime, then it works properly. but, after some time again problem arise. My code is as follow: Sub Click(ByVal Item) On Error Resume Next Dim I Dim objGrid Set objGrid = ScreenItems("StackCoilListGrid") Msgbox "Row Selected : " & objGrid.RowSel & ", " & objGrid.Row I = objGrid.RowSel End Sub in above code, if I click on 3 row, it show value 2 for RowSel. I'm puzzled. Pls help.
------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 08/09/2023 10:19:08New subject after splitting |
|
8/25/2023 7:18 AM | |
Joined: 8/3/2009 Last visit: 5/17/2024 Posts: 12970 Rating: (1651)
|
Hello GNit so The MSHFlexGrid Control is not customized especially for WinCC, so there could be some undefined behaviour. I would recommend using the Grid control from Siemens: https://support.industry.siemens.com/cs/ww/en/view/109806438 Bye Murof |
If this Information really helps, you could use the Rate function |
|
Follow us on