Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-04-2009
Member
 
Join Date: Mar 2009
Posts: 89
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:-
  • Error 381: Invalid Property Array Index

Can anyone help me out with this issue.
Reply With Quote
  #2  
Old 08-04-2009
Member
 
Join Date: May 2008
Posts: 2,383
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.
Reply With Quote
  #3  
Old 08-04-2009
Member
 
Join Date: Mar 2009
Posts: 89
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
Reply With Quote
  #4  
Old 08-04-2009
Member
 
Join Date: May 2008
Posts: 2,383
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error 381: Invalid Property Array Index"
Thread Thread Starter Forum Replies Last Post
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 10:10 AM
When I start my computer I get an "array index error" chimaan Vista Setup and Install 2 17-09-2007 12:02 AM


All times are GMT +5.5. The time now is 01:27 AM.