<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://fmplugins.idma.nz/index.php?action=history&amp;feed=atom&amp;title=DataVectCompare</id>
		<title>DataVectCompare - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://fmplugins.idma.nz/index.php?action=history&amp;feed=atom&amp;title=DataVectCompare"/>
		<link rel="alternate" type="text/html" href="https://fmplugins.idma.nz/index.php?title=DataVectCompare&amp;action=history"/>
		<updated>2026-04-07T01:46:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>https://fmplugins.idma.nz/index.php?title=DataVectCompare&amp;diff=115&amp;oldid=prev</id>
		<title>Admin: New page: I have found the following function useful for easy compare of a dataVect against a pre-defined text field.   bool DataVectCompare(const fmx::DataVect&amp; dataVect, long index, char * compare...</title>
		<link rel="alternate" type="text/html" href="https://fmplugins.idma.nz/index.php?title=DataVectCompare&amp;diff=115&amp;oldid=prev"/>
				<updated>2007-07-11T23:55:36Z</updated>
		
		<summary type="html">&lt;p&gt;New page: I have found the following function useful for easy compare of a dataVect against a pre-defined text field.   bool DataVectCompare(const fmx::DataVect&amp;amp; dataVect, long index, char * compare...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I have found the following function useful for easy compare of a dataVect against a pre-defined text field.&lt;br /&gt;
&lt;br /&gt;
 bool DataVectCompare(const fmx::DataVect&amp;amp; dataVect, long index, char * compare )&lt;br /&gt;
 //takes the passed DataVect and compares it against the fixed string passed, returns TRUE is they are the same.  (Not case sensitive)&lt;br /&gt;
 //	eg.  DataVectCompare(dataVect, 0,  &amp;quot;something&amp;quot;)   returns  TRUE is dataVect.AtAsText(0) ==  &amp;quot;something&amp;quot;&lt;br /&gt;
 {&lt;br /&gt;
 	fmx::TextAutoPtr	dv;&lt;br /&gt;
 	dv-&amp;gt;SetText( dataVect.AtAsText(index) );		// get the contents of the specified parameter.&lt;br /&gt;
 	dv-&amp;gt;Lowercase();					// and convert to all &amp;#039;lowercase&amp;#039; for checking.&lt;br /&gt;
 &lt;br /&gt;
 	fmx::TextAutoPtr    cs;&lt;br /&gt;
 	cs-&amp;gt;Assign(compare);					// take the passed &amp;#039;Compare&amp;#039; string&lt;br /&gt;
 	cs-&amp;gt;Lowercase();					// and convert to all Lowercase for checking.&lt;br /&gt;
 &lt;br /&gt;
 	return ( *dv == *cs );&lt;br /&gt;
 	&lt;br /&gt;
 } // DataVectCompare&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, in any script where you want to compare the text passed by the user, you can include...&lt;br /&gt;
&lt;br /&gt;
 	if ( DataVectCompare(dataVect,0, &amp;quot;Text&amp;quot;) )&lt;br /&gt;
 	{&lt;br /&gt;
 		// Do something only if first parameter (index = 0) passed is equal to  &amp;#039;Text&amp;#039;&lt;br /&gt;
 	}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>