|
| |||||||||
| Tags: array, error, index, invalid, property |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Error 381: Invalid Property Array Index
Hello friends, I am facing an issue while i am try to use infragistics grid control.I am getting the following error as follows:-
Can anyone help me out with this issue. |
|
#2
| ||||
| ||||
| Re: Error 381: Invalid Property Array Index
Sure i will help you out with this issue before that may i know in which language you have written you you and i would appreciate if you can provide me the code also. |
|
#3
| |||
| |||
| Re: Error 381: Invalid Property Array Index
I am using Visual Basic as my Programming language and following is the code of mine. Code: Public Function Change_Detected() As Boolean
Dim intRow As Integer
Dim intCol As Integer
For intRow = 0 To ssDbGrdSelectBOPartQty.Rows - 1
intCol = 4
ssDbGrdSelectBOPartQty.Row = intRow ---> I GET THE ERROR WHEN INTROW = 14 and ssDbGrdSelectBOPartQty.Row = 13. till row 13 the code works fine.
If Val(Trim(ssDbGrdSelectBOPartQty.Columns(intCol).Text)) <> Val(Trim(mstrmyarray(intRow))) Then
Change_Detected = True
mintRowDataChanged = intRow
mintColDataChanged = intCol
Exit Function
Else
Change_Detected = False
End If
Next
End Function |
|
#4
| ||||
| ||||
| Re: Error 381: Invalid Property Array Index
Try to follow the code i am sure it will work for you. Code: Public Function Change_Detected() As Boolean
Dim intRow As Integer
Dim intCol As Integer
mintRowDataChanged = SSDBPartXREF.Row
mintColDataChanged = SSDBPartXREF.Col
For intRow = 0 To SSDBPartXREF.Rows - 1
'intCol = 2
For intCol = 2 To 3
SSDBPartXREF.Row = intRow
If Trim(SSDBPartXREF.Columns(intCol).Text) <> Trim(mstrmyarray(intRow, intCol)) Then
Change_Detected = True
mintRowDataChanged = intRow
mintColDataChanged = intCol
Exit Function
Else
Change_Detected = False
End If
Next
Next
End Function |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Error 381: Invalid Property Array Index" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spotlight index error on Mac | Katlyn | Operating Systems | 5 | 28-02-2011 11:57 PM |
| Does Google decides which content to index & what not to index? | Uddhav | Technology & Internet | 5 | 04-03-2010 07:37 PM |
| Invalid Index Array 381 | Satyrn | Windows Software | 5 | 11-11-2009 08:37 AM |
| Inserting an index entry into index 0 of file 25 | Dharmesh Arora | Operating Systems | 3 | 16-07-2009 11:10 AM |
| When I start my computer I get an "array index error" | Gabriela | Vista Setup and Install | 17 | 17-09-2007 01:02 AM |