Jump to content
Sign in to follow this  

after trimming an array.. i lose the record count

Recommended Posts


before the trim i can see the number of records in $arecords[0][0], after the trim i lose that number =/

id like to get that number back so i can use it in a for loop.

any ideas?

Global $File = "mons.txt"

Dim $aRecords
If Not _FileReadToArray($File,$aRecords) Then
   MsgBox(4096,"Error", " Error reading file.")

_ArrayTrim($aRecords, 27)

Share this post

Link to post
Share on other sites

You have heard of the UBound() function, have you?

Broken link? PM me and I'll send you the file!

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.