<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>Database1 Analyzer</title>

<!--(Meta)==========================================================-->

<meta http-equiv=content-type content="text/html; charset=windows-1252">
<meta name=date content="06 19, 2002 11:44:56 PM">
<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=665>
<meta name=layout-width content=1024>


<!--(Links)=========================================================-->

<link rel="StyleSheet" href="../default.css">



</head>

<!--(Body)==========================================================-->


<body>

<h1>Database1 Analyzer</h1>

<p>VisualText version 1.4 introduces database connectivity functions within 
 NLP++. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->The 
 database1 sample analyzer (in VisualText\apps) connects to a database, 
 sends commands to it, retrieves data from it, and prints the results to 
 a file. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Some 
 features:</p>

<ul style="list-style: disc;"
	type=disc>
	
	<li class=kadov-p><p>Uses the <span style="font-weight: bold;"><a href="../interactive.htm">interactive</a></span>() 
 function to alter the behavior of the analyzer when running within VisualText 
 as opposed to standalone</p></li>
	
	<li class=kadov-p><p>Uses the <span style="font-weight: bold;"><a href="../exittopopup.htm">exittopopup</a></span>() 
 function within VisualText to have the user type in a command such as 
 &quot;SELECT * FROM sql;&quot;. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Then 
 a subsequent pass can grab the type-in using <span style="font-weight: bold;"><a 
 href="../getpopupdata.htm">getpopupdata</a></span>().</p></li>
	
	<li class=kadov-p><p>Includes an example of fetching every supported 
 database type. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Everything 
 except the various BLOB data types is handled.</p></li>
	
	<li class=kadov-p><p>Includes the first use of call-by-reference in 
 NLP++, with the calls to <span style="font-weight: bold;"><a href="../dbbindcol.htm">dbbindcol</a></span>(). 
 <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->This is 
 the only built-in function to use call-by-reference at present. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->User-defined 
 NLP++ functions cannot take advantage of call-by-reference yet.</p></li>
	
	<li class=kadov-p><p>Includes a standalone executable version of the 
 analyzer. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Can 
 be run with: <span style="font-weight: bold;">c:\apps\database1\Release\database1.exe 
 input\misc\xxx.txt</span></p></li>
</ul>

<p>To set up the precise example within this analyzer, you will first need 
 to install a database. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->We 
 recommend downloading MySQL and MyODBC and configuring them as described 
 at their respective web sites. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Copy 
 the database1 folder from samples to c:\apps. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Then 
 set up an ODBC connection to a database called test (making sure to match 
 the account information to that in c:\apps\database1\data\createdb). <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Then 
 one can run a command such as</p>

<p style="font-weight: bold; margin-left: 40px;">c:\mysql\bin\mysql test 
 &lt; c:\apps\database1\data\createdb</p>

<p>in order to create the same &quot;test&quot; database tables and values 
 as used in the database1 analyzer.</p>

<p>The two pass files within the database1 analyzer contain further notes 
 regarding this application.</p>

<p>&nbsp;</p>

</body>

</html>
