Results 1 to 4 of 4

Thread: Error 381: Invalid Property Array Index

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    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. #3
    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

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    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

Similar Threads

  1. Does Google decides which content to index & what not to index?
    By Uddhav in forum Technology & Internet
    Replies: 5
    Last Post: 04-03-2010, 07:37 PM
  2. Invalid Index Array 381
    By Satyrn in forum Windows Software
    Replies: 5
    Last Post: 11-11-2009, 08:37 AM
  3. Inserting an index entry into index 0 of file 25
    By Dharmesh Arora in forum Operating Systems
    Replies: 3
    Last Post: 16-07-2009, 10:10 AM
  4. When I start my computer I get an "array index error"
    By chimaan in forum Vista Setup and Install
    Replies: 2
    Last Post: 17-09-2007, 12:02 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,875,763.69477 seconds with 16 queries