Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Count of rows in Data Source



Hi all.

    I am trying to write my first AS Studio App and have a problem with getting the count of the number of rows of my data source.  I see that the number of rows command can be used, but should not be when using a data source.  So, my question is... what command can I use to get the total number of rows for my data source?

Here is what I have so far...

set table_View to table view "FolderList_TableView" of scroll view "FolderList_ScrollView" of window "Main_Window"
set data_source to data source of table_View


on idle theObject

(* Doesn't work *)
                repeat with i in every data row of data_source
                    
                    display dialog i
                    
                end repeat
       
        return 90
end idle



What is the correct code to use to get the count of the number of rows inside of a data source.  Should I use number of data rows even though I am using a data source?  Is there an easier command to go through each row individually?


Thanks in advance.


Chris




Chris Tangora
Production Services
Daytona Beach News-Journal



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.