How to check if XMLLIST is empty in Flex

If I have an XMLList object in Flex, what is the correct way to check if the list is empty? Should I just compare the results of myList.length()>? 0, myList.toString()! = “” Or try another method?
I will choose the simple myList.length()> 0 method.

You can see an example of the length() function in the ECMAScript for XML (E4X) specification (page 104), Actionscript implements this function.

If I am in Flex There is an XMLList object, what is the correct way to check if the list is empty? Should I just compare the results of myList.length()>? 0, myList.toString()! = “” Or try another method?

I will choose the simple myList.length()> 0 method.

You can use the ECMAScript for XML (E4X) specification (section You can see an example of the length() function in page 104), and Actionscript implements this function.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5901 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.