Jump to content

arry error


 Share

Recommended Posts

hi guys

i have a bidimensional  array :

Row|Col 0|Col 1|Col 2|Col 3|Col 4
[0]|Taglia|Taglia|Taglia coppa|Taglia coppa|
[1]|32|34|A|AA|
[2]|sku1|sku2|||
[3]|2.00|1.00|||
[4]|12.00|12.00|||
[5]|fkskfòfksòfks.jpg|fksfsfhskhkdsf.jpg|||

why i have  this error??

E:\_GESTIONALE_NEW\GEST_NEW.au3" (1600) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
If $aBLSplitarray[0][$z] = $aBLSplitarray[0][$z + 1] Then
If $aBLSplitarray[0][$z] = ^ ERROR

 

_ArrayDisplay($aBLSplitarray)


    For $i = 0 To UBound($aBLSplitarray, 2) - 1


        If $aBLSplitarray[0][$i] = $aBLSplitarray[0][$i + 1] Then

            _True_write_File($sLPath2step, "'<Nome>" & $aBLSplitarray[0][$i] & "</ Name>' & _") ; taglia

            _True_write_File($sLPath2step, "'<Valore>" & $aBLSplitarray[1][$i] & "</ Valore>' & _") ; 42
            _True_write_File($sLPath2step, "'<Valore>" & $aBLSplitarray[1][$i + 1] & "</ Valore>' & _") ; 42
        EndIf

    Next

thankz at all :)

 

Link to comment
Share on other sites

faustf,

2 hours ago, faustf said:

If $aBLSplitarray[0][$i] = $aBLSplitarray[0][$i + 1] Then

What happens at the end of the array?

Try like this

For $i = 0 To UBound($aBLSplitarray, 2) - 2

kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...