<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: all code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 07 Sep 2008 16:06:01 GMT</pubDate>
    <description>DZone Snippets: all code</description>
    <item>
      <title>Enumerable all</title>
      <link>http://snippets.dzone.com/posts/show/5927</link>
      <description>Source: &lt;a href="http://www.globalnerdy.com/2008/06/23/enumerating-enumerable-enumerableall/"&gt;Enumerating Enumerable: Enumerable#all?&lt;/a&gt;  [globalnerdy.com]&lt;br /&gt;&lt;br /&gt;Enumerable#all? and Arrays&lt;br /&gt;&lt;br /&gt;When used on an array and a block is provided, all? passes each item to the block. If the block never returns false or nil during this process, all? returns true; otherwise, it returns false.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# "feta" is the shortest-named cheese in this list&lt;br /&gt;cheeses = ["feta", "cheddar", "stilton", "camembert", "mozzarella", "Fromage de Montagne de Savoie"]&lt;br /&gt;&lt;br /&gt;cheeses.all? {|cheese| cheese.length &gt;= 4}&lt;br /&gt;=&gt; true&lt;br /&gt;&lt;br /&gt;cheeses.all? {|cheese| cheese.length &gt;= 5}&lt;br /&gt;=&gt; false&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 15 Aug 2008 15:39:12 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5927</guid>
      <author>jrobertson (James Robertson)</author>
    </item>
    <item>
      <title>Close all forms in Access</title>
      <link>http://snippets.dzone.com/posts/show/3911</link>
      <description>Sometimes, it's necessary to close all forms in a single procedure:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Function CloseAllForms()&lt;br /&gt;&lt;br /&gt;'It will close all forms before opening the new form (if required)&lt;br /&gt;&lt;br /&gt;Dim obj As Object&lt;br /&gt;Dim strName As String&lt;br /&gt;&lt;br /&gt;For Each obj In Application.CurrentProject.AllForms&lt;br /&gt;DoCmd.Close acForm, obj.name, acSaveYes&lt;br /&gt;Next obj&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Close all forms - except one particular screen:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Function CloseAllForms()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim obj As Object&lt;br /&gt;Dim strName As String&lt;br /&gt;&lt;br /&gt;For Each obj In Application.CurrentProject.AllForms&lt;br /&gt;&lt;br /&gt;If obj.Name &lt;&gt; "Your Form" Then &lt;br /&gt;&lt;br /&gt;DoCmd.Close acForm, obj.name, acSaveYes&lt;br /&gt;&lt;br /&gt;End if &lt;br /&gt;Next obj&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 26 Apr 2007 17:56:19 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3911</guid>
      <author>melissa68 (Melissa )</author>
    </item>
  </channel>
</rss>
