<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Autoplay Media Studio Examples &#38; Scripts &#187; LUA</title>
	<atom:link href="http://amstudio.azman.info/category/lua/feed/" rel="self" type="application/rss+xml" />
	<link>http://amstudio.azman.info</link>
	<description>Samples for Autoplay Media Studio Users</description>
	<lastBuildDate>Fri, 17 Jun 2011 15:52:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>What&#8217;s New in AMS 8</title>
		<link>http://amstudio.azman.info/2011/06/17/whats-new-in-ams-8/</link>
		<comments>http://amstudio.azman.info/2011/06/17/whats-new-in-ams-8/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 15:47:44 +0000</pubDate>
		<dc:creator>Azmanar</dc:creator>
				<category><![CDATA[Application Action]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[Check Box]]></category>
		<category><![CDATA[Combo Box]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[DialogEx]]></category>
		<category><![CDATA[File Action]]></category>
		<category><![CDATA[Grid]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Inherit]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[Label Action]]></category>
		<category><![CDATA[ListBox]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Paragraph Action]]></category>
		<category><![CDATA[Radio Button]]></category>
		<category><![CDATA[SQLite Plugin]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[SlideShow]]></category>
		<category><![CDATA[Status Dialog]]></category>
		<category><![CDATA[String Action]]></category>
		<category><![CDATA[Tables]]></category>
		<category><![CDATA[TextFile Action]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://amstudio.azman.info/?p=894</guid>
		<description><![CDATA[Hi, If you want to use all the examples from AMS 5 to AMS 7.5 in your AMS 8 projects, please take note below. AMS 8 is using an updated version of LUA 5.1. One of the most important change is the TABLE ITERATION. This is the old code used in AMS 5 to AMS [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>If you want to use all the examples from AMS 5 to AMS 7.5 in your AMS 8 projects, please take note below.</p>
<p>AMS 8 is using an updated version of LUA 5.1. One of the most important change is the TABLE ITERATION.</p>
<p>This is the old code used in AMS 5 to AMS 7.5 for TABLE ITERATION ( loops )<br />
<code><br />
-----------------------------------------------<br />
mytable = {"One","Two","Three"};</p>
<p>for k, v in mytable do<br />
   Dialog.Message("Table Item", k .. "=" .. v);<br />
end<br />
-----------------------------------------------<br />
</code></p>
<p>If my examples are using LOOPS, you need to change like below:</p>
<p><code><br />
----------------------------------------------<br />
mytable = {"One","Two","Three"};</p>
<p>for k, v in <strong><span style="color: #ff0000;">pairs</span></strong>(mytable) do<br />
    Dialog.Message("Table Item", k .. "=" .. v);<br />
end<br />
----------------------------------------------<br />
</code></p>
<p>See the word &#8220;<span style="color: #ff0000;">pairs</span>&#8221; in red and the bracket, above?</p>
<p>Just add a BRACKET around your TABLE NAME and add the word &#8220;<span style="color: #ff0000;">pairs</span>&#8220;.</p>
<p>Then all my examples using loops will work.</p>
<p>lol &#8230;.. 99.9 % of my examples are using LOOPS.<br />
You&#8217;ll definitely have to change the codes.</p>
<p>Hope this helps.</p>
<div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Autoplay%20Media%20Studio%20Examples%20%26amp%3B%20Scripts&amp;siteurl=http%3A%2F%2Famstudio.azman.info%2F&amp;linkname=What%26%238217%3Bs%20New%20in%20AMS%208&amp;linkurl=http%3A%2F%2Famstudio.azman.info%2F2011%2F06%2F17%2Fwhats-new-in-ams-8%2F"><img src="http://amstudio.azman.info/wp-content/plugins/add-to-any-ori/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://amstudio.azman.info/2011/06/17/whats-new-in-ams-8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search Image Utility &amp; SlideShow</title>
		<link>http://amstudio.azman.info/2009/06/08/search-image-utility-slideshow/</link>
		<comments>http://amstudio.azman.info/2009/06/08/search-image-utility-slideshow/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 18:25:14 +0000</pubDate>
		<dc:creator>Azmanar</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[DialogEx]]></category>
		<category><![CDATA[File Action]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[Label Action]]></category>
		<category><![CDATA[ListBox]]></category>
		<category><![CDATA[Radio Button]]></category>
		<category><![CDATA[SlideShow]]></category>
		<category><![CDATA[Status Dialog]]></category>
		<category><![CDATA[String Action]]></category>
		<category><![CDATA[Tables]]></category>
		<category><![CDATA[TextFile Action]]></category>
		<category><![CDATA[Search Image Utility with Slide Show]]></category>

		<guid isPermaLink="false">http://amstudio.azman.info/?p=811</guid>
		<description><![CDATA[Hi, I noticed a lot of downloads for the Basic SlideShow. Safe to say that the posted sample is quite useful indeed. Thanks for downloading, but where are the comments? Even short comments would be much appreciated. As promised, here&#8217;s the Search Image Utility with a SlideShow feature, alongwith of the Thumblist feature. From the [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I noticed a lot of downloads for the Basic SlideShow. Safe to say that the posted sample is quite useful indeed. Thanks for downloading, but where are the comments? Even short comments would be much appreciated.</p>
<p>As promised, here&#8217;s the Search Image Utility with a SlideShow feature, alongwith of the Thumblist feature.</p>
<p>From the ScreenShot below, you will notice I&#8217;ve added a Slide Show button to the project. OnClick, a Temp Table is created by collecting info from the ListBox. Then the same action opens a DialogEx with a SlideShow object. OnShow, the DialogEx collects info from the Temp Table and inserts them (image path) into the SlideShow object. No big deal. The Temp Table is the KEY. It bridges info between objects. <strong>AMS &amp; LUA rulez !!!!</strong></p>
<div id="attachment_813" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/06/searchslideshow.jpg"><img class="size-medium wp-image-813" title="searchslideshow" src="http://amstudio.azman.info/wp-content/uploads/2009/06/searchslideshow-300x275.jpg" alt="Search Image with SlideShow" width="300" height="275" /></a><p class="wp-caption-text">Search Image with SlideShow</p></div>
<p>Your Search Results can be seen in a SlideShow. And if you select a Saved Groups, you can view a SlideShow of it as well ( shown on the screen shot below ). AND &#8230;&#8230;&#8230;&#8230;if you tweak this example further with <strong>RETESET&#8217;s, SSIDE&#8217;s, UPETER&#8217;s, WORM&#8217;s </strong>&amp;<strong> DERMOT&#8217;s plugins</strong>, you&#8217;ll amazed yourself with a feature-rich Electronic Album.</p>
<div id="attachment_814" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/06/searchslideshow2.jpg"><img class="size-medium wp-image-814" title="searchslideshow2" src="http://amstudio.azman.info/wp-content/uploads/2009/06/searchslideshow2-300x226.jpg" alt="Search Image Utility with Slide Show" width="300" height="226" /></a><p class="wp-caption-text">Search Image Utility with Slide Show</p></div>
<p>Finally, if you plan to distribute APPs developed from project examples in this blog, PLEASE INCLUDE ERROR CHECK FUNCTION for each AMS action. It&#8217;s your responsibility to do that. Most of my examples are without error checking for the sake of clarity.</p>
<p>Please leave your comments in this blog.</p>
<p>Please <a href="http://amstudio.azman.info/wp-login.php?redirect_to=/category/lua/feed/">Login</a> or <a href="http://amstudio.azman.info/wp-login.php?action=register">Register</a> to download this file.</p>
<div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Autoplay%20Media%20Studio%20Examples%20%26amp%3B%20Scripts&amp;siteurl=http%3A%2F%2Famstudio.azman.info%2F&amp;linkname=Search%20Image%20Utility%20%26%23038%3B%20SlideShow&amp;linkurl=http%3A%2F%2Famstudio.azman.info%2F2009%2F06%2F08%2Fsearch-image-utility-slideshow%2F"><img src="http://amstudio.azman.info/wp-content/plugins/add-to-any-ori/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://amstudio.azman.info/2009/06/08/search-image-utility-slideshow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ListBox &amp; DB Interactions</title>
		<link>http://amstudio.azman.info/2009/05/23/listbox-db-interactions/</link>
		<comments>http://amstudio.azman.info/2009/05/23/listbox-db-interactions/#comments</comments>
		<pubDate>Fri, 22 May 2009 17:29:31 +0000</pubDate>
		<dc:creator>Azmanar</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Combo Box]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[DialogEx]]></category>
		<category><![CDATA[File Action]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[Label Action]]></category>
		<category><![CDATA[ListBox]]></category>
		<category><![CDATA[Radio Button]]></category>
		<category><![CDATA[SQLite Plugin]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[String Action]]></category>
		<category><![CDATA[Tables]]></category>
		<category><![CDATA[SQLite Database]]></category>

		<guid isPermaLink="false">http://amstudio.azman.info/?p=719</guid>
		<description><![CDATA[Hi, Been some time. Was busy setting-up a new office in Kuala Lumpur. In between activities, I spared some time in transforming our previous project. Move over Text Files, here comes SQLite database. The SQLite DB file is located in MyDocs (XP/P8/ME) or Documents (Vista) hosted in the folder named as MyResourceFolder. The folder and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dpbolvw.net/pm118y1A719PTURUQYQPRQUYTZQW" target="_blank" onmouseover="window.status='http://eset.com';return true;" onmouseout="window.status=' ';return true;"><br />
<img src="http://www.awltovhc.com/jr75tkocig156362A21326A5B28" alt="ESET Smart Security - Save 25%" border="0"/></a><br />
Hi,</p>
<p>Been some time. Was busy setting-up a new office in Kuala Lumpur. In between activities, I spared some time in transforming our previous project. Move over Text Files, here comes SQLite database. </p>
<p>The SQLite DB file is located in MyDocs (XP/P8/ME) or Documents (Vista) hosted in the folder named as MyResourceFolder. The folder and DB file will be created automatically when launching this App. </p>
<div id="attachment_738" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress-300x274.jpg" alt="Mini Address Book with SQLite DB" title="miniaddress" width="300" height="274" class="size-medium wp-image-738" /></a><p class="wp-caption-text">Mini Address Book with SQLite DB</p></div>
<p>Some minor changes were made to the interface. I&#8217;ve also added more details but the functions remain the same:<br />
1. Add New Entry<br />
2. Delete Entries<br />
3. Edit Entries<br />
4. Search Entries<br />
5. Group Entries<br />
6. Rename Groups<br />
7. Delete Groups<br />
8. Share Items between Groups<br />
9. Make a New Group from Search Results<br />
10. Validate All Entries</p>
<div id="attachment_723" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress1.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress1-300x233.jpg" alt="Mini Address Book with SQLite" title="miniaddress1" width="300" height="233" class="size-medium wp-image-723" /></a><p class="wp-caption-text">Mini Address Book with SQLite</p></div>
<p>Since this Project uses SQLite, we have removed previous concerns. We can now<br />
1. Update Entries shared by several Groups all at once<br />
2. Search every row in the DB directly without any help from ListBox.</p>
<div id="attachment_724" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress2.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress2-300x264.jpg" alt="Mini Address Book with SQLite" title="miniaddress2" width="300" height="264" class="size-medium wp-image-724" /></a><p class="wp-caption-text">Mini Address Book with SQLite</p></div>
<p>For each item ( every DB row ), you might only see 4 data on the interface. In actual fact, this project is prepared for more than 10 data per item. This includes the usual suspects like Address, Zip Code, Street Name, Country, Birthday, Description, Notation and etc. I encourage readers to try embed more entries at the interface. This is the way to learn. </p>
<div id="attachment_725" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress3.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/miniaddress3-300x260.jpg" alt="Mini Address Book with SQLite" title="miniaddress3" width="300" height="260" class="size-medium wp-image-725" /></a><p class="wp-caption-text">Mini Address Book with SQLite</p></div>
<p>If you add Dermot&#8217;s Pop3 Plugin, you&#8217;re making an almost full-featured Email App. To learn more about SQlite DB on AMS, please view TJ Tigger&#8217;s Video.</p>
<p>Please <a href="http://amstudio.azman.info/wp-login.php?redirect_to=/category/lua/feed/">Login</a> or <a href="http://amstudio.azman.info/wp-login.php?action=register">Register</a> to download this file.</p>
<p><SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-h4m3"> </SCRIPT></p>
<p>In the next topic on Mini Address Book, I plan to add 2 more features:<br />
1. Photo for each Name<br />
2. Calendaring.</p>
<p>We&#8217;ll see how it goes. If there is a request, I will make create another example just for the Search Function. Please use the comment in the Blog.</p>
<p>And please, leave your comments in this blog.</p>
<div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Autoplay%20Media%20Studio%20Examples%20%26amp%3B%20Scripts&amp;siteurl=http%3A%2F%2Famstudio.azman.info%2F&amp;linkname=ListBox%20%26%23038%3B%20DB%20Interactions&amp;linkurl=http%3A%2F%2Famstudio.azman.info%2F2009%2F05%2F23%2Flistbox-db-interactions%2F"><img src="http://amstudio.azman.info/wp-content/plugins/add-to-any-ori/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://amstudio.azman.info/2009/05/23/listbox-db-interactions/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>ListBox &amp; TextFile Interactions &#8211; Validation</title>
		<link>http://amstudio.azman.info/2009/05/07/listbox-textfile-interactions-validation/</link>
		<comments>http://amstudio.azman.info/2009/05/07/listbox-textfile-interactions-validation/#comments</comments>
		<pubDate>Thu, 07 May 2009 10:30:59 +0000</pubDate>
		<dc:creator>Azmanar</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Combo Box]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[DialogEx]]></category>
		<category><![CDATA[File Action]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[Label Action]]></category>
		<category><![CDATA[ListBox]]></category>
		<category><![CDATA[String Action]]></category>
		<category><![CDATA[Tables]]></category>
		<category><![CDATA[TextFile Action]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://amstudio.azman.info/?p=708</guid>
		<description><![CDATA[Hi, I&#8217;m back after a very busy week up North. Let&#8217;s embed Validation function into our mini Email Address Book project. Changes must be done to the flow and therefore the scripts. But it is not that difficult to do if you understand the previous 2 samples. Once the changes were made, I can now [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dpbolvw.net/pm118y1A719PTURUQYQPRQUYTZQW" target="_blank" onmouseover="window.status='http://eset.com';return true;" onmouseout="window.status=' ';return true;"><br />
<img src="http://www.awltovhc.com/jr75tkocig156362A21326A5B28" alt="ESET Smart Security - Save 25%" border="0"/></a><br />
Hi,</p>
<p>I&#8217;m back after a very busy week up North. </p>
<p>Let&#8217;s embed Validation function into our mini Email Address Book project. Changes must be done to the flow and therefore the scripts. But it is not that difficult to do if you understand the previous 2 samples. </p>
<p>Once the changes were made, I can now :<br />
1. Validate Name entry<br />
2. Validate Email entry<br />
3. Validate Group Name entry</p>
<p>Each validation uses its own PATTERN. You can set this pattern by looking at the Globals Pane. This one is real easy to do. </p>
<div id="attachment_709" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/validate1.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/validate1-150x150.jpg" alt="Validate All Entries" title="validate1" width="150" height="150" class="size-thumbnail wp-image-709" /></a><p class="wp-caption-text">Validate All Entries</p></div>
<p>I&#8217;ve made quite a few changes to our project. I&#8217;ve optimized the scripts to run faster. So you can find more functions in the Globals and less scripts in objects. I&#8217;m using a TEMP TABLE that collects data from ListBoxes and then WRITE the TextFiles from the TEMP Table. This way, I can add more features to the project ( and preparing it for SQLite Plugin as well.).</p>
<div id="attachment_710" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/validate2.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/validate2-150x150.jpg" alt="Validate Entries" title="validate2" width="150" height="150" class="size-thumbnail wp-image-710" /></a><p class="wp-caption-text">Validate Entries</p></div>
<p>If you take a look at the Screen Shot above and below, the project pops up a DialogEx for New Group Entries. This entry is also validated according to a set of PATTERNS. Once validated, I&#8217;ve also inserted the Good Old Dialog to WARN USERS about the implication of their next course of actions.</p>
<div id="attachment_711" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/validate3.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/validate3-150x150.jpg" alt="Good Old Dialog &amp; DialogEx Working together" title="validate3" width="150" height="150" class="size-thumbnail wp-image-711" /></a><p class="wp-caption-text">Good Old Dialog &#038; DialogEx Working together</p></div>
<p>Once the New Group has been named, the DialogEx is closed and brings users to the front-end. Their latest Group will be auto-selected. This is easy to do. Look under the hood as proof.</p>
<p>Also, I&#8217;ve added a function to change the name of the GROUP as shown in the Screen Shot below. In fact, what we&#8217;re doing is changing the name of the Text Files.</p>
<div id="attachment_717" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/05/validate4.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/05/validate4-150x150.jpg" alt="Change Group Name" title="validate4" width="150" height="150" class="size-thumbnail wp-image-717" /></a><p class="wp-caption-text">Change Group Name</p></div>
<p>Please <a href="http://amstudio.azman.info/wp-login.php?redirect_to=/category/lua/feed/">Login</a> or <a href="http://amstudio.azman.info/wp-login.php?action=register">Register</a> to download this file.</p>
<p>Please leave a comment.</p>
<p><SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-h4m3"> </SCRIPT></p>
<div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Autoplay%20Media%20Studio%20Examples%20%26amp%3B%20Scripts&amp;siteurl=http%3A%2F%2Famstudio.azman.info%2F&amp;linkname=ListBox%20%26%23038%3B%20TextFile%20Interactions%20%26%238211%3B%20Validation&amp;linkurl=http%3A%2F%2Famstudio.azman.info%2F2009%2F05%2F07%2Flistbox-textfile-interactions-validation%2F"><img src="http://amstudio.azman.info/wp-content/plugins/add-to-any-ori/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://amstudio.azman.info/2009/05/07/listbox-textfile-interactions-validation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Data Entry Validation Function</title>
		<link>http://amstudio.azman.info/2009/04/27/data-entry-validation-function/</link>
		<comments>http://amstudio.azman.info/2009/04/27/data-entry-validation-function/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 07:28:38 +0000</pubDate>
		<dc:creator>Azmanar</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Input]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[String Action]]></category>
		<category><![CDATA[Form Validation]]></category>

		<guid isPermaLink="false">http://amstudio.azman.info/?p=673</guid>
		<description><![CDATA[Hi, Been busy doing some work in the north of Malaysia. Helping a friend of mine starting up his Wood Plastic Composite factory. I coined it as a Save The Forest and Love Your Environment Industry. The factory transforms unwanted Rice Husks (which farmers normally burn) into multi-purpose Wood. In the midst of that, I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dpbolvw.net/pm118y1A719PTURUQYQPRQUYTZQW" target="_blank" onmouseover="window.status='http://eset.com';return true;" onmouseout="window.status=' ';return true;"><br />
<img src="http://www.awltovhc.com/jr75tkocig156362A21326A5B28" alt="ESET Smart Security - Save 25%" border="0"/></a></p>
<p>Hi,</p>
<p>Been busy doing some work in the north of Malaysia. Helping a friend of mine starting up his Wood Plastic Composite factory. I coined it as a Save The Forest and Love Your Environment Industry. The factory transforms unwanted Rice Husks (which farmers normally burn) into multi-purpose Wood. In the midst of that, I spared some time in improving an important utility, i.e. the Data Entry Validation Function. </p>
<p>Data Entry Validation is important if we&#8217;re developing serious apps. We can use TABLES, For..Do and If..Or loops for this purpose. But in my opinion, using LUA is the easiest, fastest and efficient way. You&#8217;ll be surprised on how easy it is after looking at the codes.</p>
<p>I&#8217;m posting this function as a standalone example just in case some AMS users want to reference it for other apps.  We&#8217;ll embed this Validation function in the Email Address Book in the next topic. </p>
<div id="attachment_677" class="wp-caption aligncenter" style="width: 310px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/regex.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/regex-300x155.jpg" alt="Form Validation Functions" title="Form Validation Functions" width="300" height="155" class="size-medium wp-image-677" /></a><p class="wp-caption-text">Form Validation Functions</p></div>
<p>This example shows 4 types of validation:<br />
1. Alphabet Entries only<br />
2. Numeric Entries only<br />
3. Alphanumeric Entries only<br />
4. Email Entries only </p>
<p>The Email Validation is the most complex to do. It uses lots of String Actions and ElseIfs. There are many ways to do it. Anyhow, there might be REGEX functions out there done by AMS users just waiting to share with us. In the mean time, I&#8217;ll share what I have. </p>
<p>Please <a href="http://amstudio.azman.info/wp-login.php?redirect_to=/category/lua/feed/">Login</a> or <a href="http://amstudio.azman.info/wp-login.php?action=register">Register</a> to download this file.</p>
<p>You can modify the functions according to your Validation needs. Just add or delete the characters in the LUA array to fit specific patterns that you fancy.</p>
<p><SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-h4m3"> </SCRIPT></p>
<p><strong>Side note:</strong><br />
I spent my spare time improving the Email Validation function at a blue-coloured wooden shack restaurant by a very clean beach at Pulau Sayak lagoon. Nice place, nice food and my 3G internet connection was very speedy there. Love it.</p>
<table>
<tr>
<td>
<div id="attachment_679" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak2.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak2-150x150.jpg" alt="The Road to Pulau Sayak" title="pulausayak2" width="150" height="150" class="size-thumbnail wp-image-679" /></a><p class="wp-caption-text">The Road to Pulau Sayak</p></div></td>
<td>
<div id="attachment_684" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak5.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak5-150x150.jpg" alt="Pulau Sayak : The blue shack" title="pulausayak5" width="150" height="150" class="size-thumbnail wp-image-684" /></a><p class="wp-caption-text">Pulau Sayak : The blue shack</p></div>
</td>
<td>
<div id="attachment_687" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak3.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak3-150x150.jpg" alt="An associate checking emails" title="pulausayak3" width="150" height="150" class="size-thumbnail wp-image-687" /></a><p class="wp-caption-text">An associate checking emails</p></div>
</td>
<tr>
<td>
<div id="attachment_691" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak4.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak4-150x150.jpg" alt="Pulau Sayak lagoon" title="pulausayak4" width="150" height="150" class="size-thumbnail wp-image-691" /></a><p class="wp-caption-text">Pulau Sayak lagoon</p></div>
</td>
<td>
<div id="attachment_693" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak1.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak1-150x150.jpg" alt="The South Side" title="pulausayak1" width="150" height="150" class="size-thumbnail wp-image-693" /></a><p class="wp-caption-text">The South Side</p></div>
</td>
<td>
<div id="attachment_694" class="wp-caption aligncenter" style="width: 160px"><a href="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak6.jpg"><img src="http://amstudio.azman.info/wp-content/uploads/2009/04/pulausayak6-150x150.jpg" alt="Anchored Fishing boats" title="pulausayak6" width="150" height="150" class="size-thumbnail wp-image-694" /></a><p class="wp-caption-text">Anchored Fishing boats</p></div>
</td>
</tr>
</table>
<div class="addtoany_share_save_container"><ul class="addtoany_list"><li><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=Autoplay%20Media%20Studio%20Examples%20%26amp%3B%20Scripts&amp;siteurl=http%3A%2F%2Famstudio.azman.info%2F&amp;linkname=Data%20Entry%20Validation%20Function&amp;linkurl=http%3A%2F%2Famstudio.azman.info%2F2009%2F04%2F27%2Fdata-entry-validation-function%2F"><img src="http://amstudio.azman.info/wp-content/plugins/add-to-any-ori/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://amstudio.azman.info/2009/04/27/data-entry-validation-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

