<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - Pascal and Delphi</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our Pascal and Delphi forum is the place for Q&A-style discussions related to this legacy language and its GUI equivalent. Note that we also have a separate Legacy Languages forum within the Software Development category.]]></description>
		<language>en-US</language>
		<lastBuildDate>Sat, 21 Nov 2009 10:06:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Pascal and Delphi</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Converting Delphi Components</title>
			<link>http://www.daniweb.com/forums/thread239709.html</link>
			<pubDate>Thu, 19 Nov 2009 11:10:49 GMT</pubDate>
			<description><![CDATA[Hi.I've just begun using delphi 2010.I used to work with 2007 and I had a lot of 3rd party components installed.As an example Infor POwer is a very powerful 3rd party component and I use it almost in all my applications.But now when I install them on 2010 it fails.I know that .dcu files are version...]]></description>
			<content:encoded><![CDATA[<div>Hi.I've just begun using delphi 2010.I used to work with 2007 and I had a lot of 3rd party components installed.As an example Infor POwer is a very powerful 3rd party component and I use it almost in all my applications.But now when I install them on 2010 it fails.I know that .dcu files are version dependent so I have to recompile the .pas files in the current delphi but whatever I do I fail.Does anybody know how to do it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>azerbaycanli113</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239709.html</guid>
		</item>
		<item>
			<title>haw to write byte range 0x00 to 0xFF</title>
			<link>http://www.daniweb.com/forums/thread239526.html</link>
			<pubDate>Wed, 18 Nov 2009 18:27:46 GMT</pubDate>
			<description>byte range is 0x00 to 0xFF  haw to write to text file  
like this 
byte  0x00 =  
byte  0x01 =  
byte  0x02 =  
...... all to byte 0xFF 
Thanks.</description>
			<content:encoded><![CDATA[<div>byte range is 0x00 to 0xFF  haw to write to text file <br />
like this<br />
byte  0x00 = <br />
byte  0x01 = <br />
byte  0x02 = <br />
...... all to byte 0xFF<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>especta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239526.html</guid>
		</item>
		<item>
			<title>opening a new form using a button</title>
			<link>http://www.daniweb.com/forums/thread238875.html</link>
			<pubDate>Mon, 16 Nov 2009 09:45:50 GMT</pubDate>
			<description>Simply put i would like to open a new form as simply as possible using a button 
i looked at this http://www.daniweb.com/forums/thread99518.html# but it confused me 
i dont want any values passed on i just simply want it to hide the old form and open then new form can this be done?</description>
			<content:encoded><![CDATA[<div>Simply put i would like to open a new form as simply as possible using a button<br />
i looked at this <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread99518.html#" target="_blank">http://www.daniweb.com/forums/thread99518.html#</a> but it confused me<br />
i dont want any values passed on i just simply want it to hide the old form and open then new form can this be done?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>HelpMeIT</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238875.html</guid>
		</item>
		<item>
			<title>Help For Writing Component</title>
			<link>http://www.daniweb.com/forums/thread238458.html</link>
			<pubDate>Sat, 14 Nov 2009 08:43:36 GMT</pubDate>
			<description><![CDATA[Hello All  
I am Writing some components that are depend together. for example tow of them named as "TFyzLine" and "TFyzTranse" thay have a same Property that named as "InputFrom" .  
"TfyzLine" mast connect to "TFyzTranse" via "InputFrom" and get some data automatically from "TFyzTranse" and...]]></description>
			<content:encoded><![CDATA[<div>Hello All <br />
I am Writing some components that are depend together. for example tow of them named as &quot;TFyzLine&quot; and &quot;TFyzTranse&quot; thay have a same Property that named as &quot;InputFrom&quot; . <br />
&quot;TfyzLine&quot; mast connect to &quot;TFyzTranse&quot; via &quot;InputFrom&quot; and get some data automatically from &quot;TFyzTranse&quot; and &quot;TFyzTranse&quot; mast Connect to &quot;TFyzLine&quot; via &quot;InputFrom&quot; and get data from &quot;TFyzLine&quot; too .<br />
I can Write &quot;TFyzLine&quot; that can connect to &quot;TFyzTranse&quot; via &quot;InputFrom&quot; property and get data from &quot;TFyzTranse&quot;. But I can not do same for &quot;TFyzTranse&quot; because of circular declaration.<br />
how cane I Solve this problem. <br />
source codes are attached to this thred.<br />
Thanks.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12559&amp;d=1258188199">Component.zip</a> (17.6 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>fayyaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238458.html</guid>
		</item>
		<item>
			<title>C++ to Delphi conversion</title>
			<link>http://www.daniweb.com/forums/thread238270.html</link>
			<pubDate>Fri, 13 Nov 2009 12:56:39 GMT</pubDate>
			<description><![CDATA[I am trying to convert a piece of code into Delphi but fall down when it comes to this example : 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help...]]></description>
			<content:encoded><![CDATA[<div>I am trying to convert a piece of code into Delphi but fall down when it comes to this example :<br />
 <pre style="margin:20px; line-height:13px">void __stdcall GetBuffers( short **xBuffers, unsigned long nValues)<br />
{<br />
.......<br />
memcpy(TargetA, xBuffers[0], nValues * sizeof(short));<br />
memcpy(TargetB, xBuffers[1], nValues * sizeof(short));<br />
memcpy(TargetC, xBuffers[3], nValues * sizeof(short));<br />
memcpy(Targetd, xBuffers[4], nValues * sizeof(short));<br />
}</pre>Could you please help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>MorrisL</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238270.html</guid>
		</item>
		<item>
			<title>More than 1 Monitor</title>
			<link>http://www.daniweb.com/forums/thread238083.html</link>
			<pubDate>Thu, 12 Nov 2009 18:03:38 GMT</pubDate>
			<description>Hi, 
 
I have usually have 2 monitors available but not always.   
 
I use one for displaying maps and the other for the data on a called form. 
How do 1 get Maps on 1 and Data to appear on the other without dragging  the form onto the second monitor. 
 
Thanx 
 
P.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have usually have 2 monitors available but not always.  <br />
<br />
I use one for displaying maps and the other for the data on a called form.<br />
How do 1 get Maps on 1 and Data to appear on the other without dragging  the form onto the second monitor.<br />
<br />
Thanx<br />
<br />
P.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>quaifp1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238083.html</guid>
		</item>
		<item>
			<title>Format string in Delphi</title>
			<link>http://www.daniweb.com/forums/thread238020.html</link>
			<pubDate>Thu, 12 Nov 2009 12:20:23 GMT</pubDate>
			<description><![CDATA[Hello, 
 
who can tell me how to format a string in Delphi?  
I must format 09-120-123456 into: 091200123456 
it is, remove the dashes and insert additional 0 in the middle to make a 13 character long string.  
 
I searched Internet, but I can't find anything understandable...  
like: 
...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
who can tell me how to format a string in Delphi? <br />
I must format 09-120-123456 into: 091200123456<br />
it is, remove the dashes and insert additional 0 in the middle to make a 13 character long string. <br />
<br />
I searched Internet, but I can't find anything understandable... <br />
like:<br />
 [Format(&lt;qReportIzpis.&quot;acDoc&quot;&gt;,the result???)]<br />
<br />
this is for a report.. <br />
<br />
thank youuu</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>maracaibolago</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238020.html</guid>
		</item>
		<item>
			<title>Using Media Player</title>
			<link>http://www.daniweb.com/forums/thread237590.html</link>
			<pubDate>Tue, 10 Nov 2009 23:01:01 GMT</pubDate>
			<description><![CDATA[I have a problem using Media Player to play a number of parts of .wav-files after each other. While one part is being played I don't want the program to wait.  
If I set  
Notify := true; 
and 
Wait := False; 
then 
Play; 
 
I get no sound at all. 
What's the trick?]]></description>
			<content:encoded><![CDATA[<div>I have a problem using Media Player to play a number of parts of .wav-files after each other. While one part is being played I don't want the program to wait. <br />
If I set <br />
Notify := true;<br />
and<br />
Wait := False;<br />
then<br />
Play;<br />
<br />
I get no sound at all.<br />
What's the trick?<br />
<br />
Setting Wait := True; and not using Notify gives me tha sound, but the the computer is frozen until play is done.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>AKJo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237590.html</guid>
		</item>
		<item>
			<title>Word search puzzle in Delphi?</title>
			<link>http://www.daniweb.com/forums/thread237586.html</link>
			<pubDate>Tue, 10 Nov 2009 22:51:46 GMT</pubDate>
			<description>With Delphi, is it possible to make a grid like in java word-search puzzles?  
 
I have a collection on word-search puzzles for children (pdf files) and wish to make small app of it (they’re already done; I need just to set them up).  
 
I could make it work if each letter is on a separate button,...</description>
			<content:encoded><![CDATA[<div>With Delphi, is it possible to make a grid like in java word-search puzzles? <br />
<br />
I have a collection on word-search puzzles for children (pdf files) and wish to make small app of it (they’re already done; I need just to set them up). <br />
<br />
I could make it work if each letter is on a separate button, but is it possible to do it inside rich edit or similar (so that look more or less like java based word searches).<br />
<br />
Any ideas?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>marygreen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237586.html</guid>
		</item>
		<item>
			<title>Exporting table data to CSV.</title>
			<link>http://www.daniweb.com/forums/thread237345.html</link>
			<pubDate>Tue, 10 Nov 2009 01:10:13 GMT</pubDate>
			<description>Name    Address1   Address2   Addess3   
----------------   ---------------------   --------------------   ------------------- 
Name1             Address1               Address2             Address3 
Name2             Address1               (NULL)                 Address3 
Name3            ...</description>
			<content:encoded><![CDATA[<div>Name    Address1   Address2   Addess3  <br />
----------------   ---------------------   --------------------   -------------------<br />
Name1             Address1               Address2             Address3<br />
Name2             Address1               (NULL)                 Address3<br />
Name3             Address1               Address2             (NULL)<br />
<br />
I need to take this information and export it into a CSV file with the Owners Address (combination of add1, add2 and add3) As a single string, Then take the Town.. which could either be (Add2, or Add3)<br />
Writing it to the end of the whole (Owner+Address) String As well as within it.<br />
<br />
Here I have the information being exported into a CSV file, But am unsure as how to proceed with adding the Town again at the end of the owner string.<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px"> procedure SaveAsCSV(myFileName: string; myDataSet: TDataSet);<br />
var<br />
&nbsp; Owner: TextFile;<br />
&nbsp; i: integer;<br />
&nbsp; s: string;<br />
begin<br />
&nbsp; AssignFile (Owner, myFileName);<br />
&nbsp; Rewrite(Owner);<br />
<br />
&nbsp; s := '';<br />
<br />
&nbsp; try<br />
<br />
&nbsp; &nbsp; for i := 0 to myDataSet.FieldCount - 1 do<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; s := s + Format('&quot;%s&quot;;', [myDataSet.Fields[i].FieldName]);<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; Writeln(Owner, s);<br />
<br />
<br />
&nbsp; &nbsp; while not myDataSet.Eof do<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; s := '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; for i := 0 to myDataSet.fieldCount -1 do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s := s + Format('&quot;%s&quot;;', [myDataSet.Fields[i].AsString]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Writeln(Owner, s);<br />
&nbsp; &nbsp; &nbsp; &nbsp; myDataSet.Next;<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; finally<br />
&nbsp; &nbsp; CloseFile(Owner);<br />
&nbsp; end;<br />
end;<br />
<br />
procedure TForm1.OutputClick(Sender: TObject);<br />
begin<br />
&nbsp; DBGrid1.Visible := False;<br />
&nbsp; try<br />
&nbsp; &nbsp; if (SaveDialog1.Execute = true) and<br />
&nbsp; &nbsp;  (length(SaveDialog1.FileName) &gt; 0) then<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; SaveDialog1.DefaultExt := 'CSV';<br />
&nbsp; &nbsp; &nbsp; &nbsp; SaveAsCSV(SaveDialog1.Filename, SQLQuery1);<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; finally<br />
&nbsp; &nbsp; DBGrid1.Visible := True;<br />
&nbsp; end;<br />
end;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Vampirewombat</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237345.html</guid>
		</item>
		<item>
			<title>Delphi 2007 Stored Procedure in SQL 2000</title>
			<link>http://www.daniweb.com/forums/thread236957.html</link>
			<pubDate>Sun, 08 Nov 2009 10:10:45 GMT</pubDate>
			<description>Hi All, 
 
Im new to the forum so not sure where to post my question, any help would be greatly appreciated. 
 
I have written a program in Delphi 2007 using MS SQL connection, My program runs fine on the development system but as soon as I put it on a fresh XP machine it willl connect to the DB...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Im new to the forum so not sure where to post my question, any help would be greatly appreciated.<br />
<br />
I have written a program in Delphi 2007 using MS SQL connection, My program runs fine on the development system but as soon as I put it on a fresh XP machine it willl connect to the DB fine and run but will not run my stored procedure unless I have Delphi 2007 installed and have run it at least once. I have tried loading registry settings for boland but no luck.<br />
<br />
Has anyone had this problem before?<br />
<br />
Thanks in advance Rodney</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>princeknz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236957.html</guid>
		</item>
		<item>
			<title><![CDATA[runtime error as IOresult<>0]]></title>
			<link>http://www.daniweb.com/forums/thread236592.html</link>
			<pubDate>Fri, 06 Nov 2009 15:50:32 GMT</pubDate>
			<description><![CDATA[ok, when the user types in a non-exist file name, the program simply shut down. i dont know what happen 
 
 
procedure set_up; 
begin 
write('file');readln(file); 
assign(f,file); reset(f); 
{$I-}if IOresult<>0 then writeln('NO File....'); 
close(f);{$I+} 
end;]]></description>
			<content:encoded><![CDATA[<div>ok, when the user types in a non-exist file name, the program simply shut down. i dont know what happen<br />
<br />
 <pre style="margin:20px; line-height:13px">procedure set_up;<br />
begin<br />
write('file');readln(file);<br />
assign(f,file); reset(f);<br />
{$I-}if IOresult&lt;&gt;0 then writeln('NO File....');<br />
close(f);{$I+}<br />
end;<br />
....<br />
{this is the main program}<br />
begin<br />
setup;<br />
end</pre><br />
this proceure is called in the main program ,yet, runtime error occurs and the screen just flashes out. it works perfectly when i type in the correct filename. i need your help!!!<br />
<br />
grace</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>amazing_grace</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236592.html</guid>
		</item>
		<item>
			<title>insert data from dbgrid into SQL SERVER database table</title>
			<link>http://www.daniweb.com/forums/thread236541.html</link>
			<pubDate>Fri, 06 Nov 2009 10:41:01 GMT</pubDate>
			<description>Hello, 
Is it possible to insert the data from dbgrid component into an SQL SERVER database table.  
The data that is in the grid is imported from Excel worksheet. 
It may look silly but I need to insert that data into a table. 
 
Any help is appreciated, thank you</description>
			<content:encoded><![CDATA[<div>Hello,<br />
Is it possible to insert the data from dbgrid component into an SQL SERVER database table. <br />
The data that is in the grid is imported from Excel worksheet.<br />
It may look silly but I need to insert that data into a table.<br />
<br />
Any help is appreciated, thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>maracaibolago</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236541.html</guid>
		</item>
		<item>
			<title>KeyPress, KeyDown not triggering event</title>
			<link>http://www.daniweb.com/forums/thread236446.html</link>
			<pubDate>Fri, 06 Nov 2009 02:20:40 GMT</pubDate>
			<description><![CDATA[Hey All 
 
I've recently picked up a VCL delphi project and am quite new to the language. The software so far consists of a main form, with several GroupBoxes and panels covering the entire form. I'm trying to implement some user short cuts, for example when "Ctrl+1" is pressed I want all the...]]></description>
			<content:encoded><![CDATA[<div>Hey All<br />
<br />
I've recently picked up a VCL delphi project and am quite new to the language. The software so far consists of a main form, with several GroupBoxes and panels covering the entire form. I'm trying to implement some user short cuts, for example when &quot;Ctrl+1&quot; is pressed I want all the ComboBoxs to be set to a certain position. Correct me if I'm wrong but I have added an event that triggers when a button is pressed i.e KeyDown, KeyPress, etc.. However the event does not seem to be triggering when a keyboard button is pressed. Does anyone have an idea why this could be? My only guess is that the GroupBoxes are intefering. Any thoughts / hints would be greatly appreciated!<br />
<br />
Cheers<br />
<br />
Cameron</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>CanYouHandstand</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236446.html</guid>
		</item>
		<item>
			<title>How  i can read rs232c in delphi</title>
			<link>http://www.daniweb.com/forums/thread236028.html</link>
			<pubDate>Wed, 04 Nov 2009 18:40:54 GMT</pubDate>
			<description>Hilp me please 
I want to read data of RS232 and store it in Access Data base</description>
			<content:encoded><![CDATA[<div>Hilp me please<br />
I want to read data of RS232 and store it in Access Data base</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>mohsennour</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236028.html</guid>
		</item>
		<item>
			<title>Haw to allow to enter number  only from number 1 to 65535.</title>
			<link>http://www.daniweb.com/forums/thread235679.html</link>
			<pubDate>Tue, 03 Nov 2009 15:12:54 GMT</pubDate>
			<description><![CDATA[i have problem to allow enter only from 1 to 65535 bicouse  
example if enter 10000,2000 is ok but enter 99 not. 
 
hire 1 example (not working) 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>i have problem to allow enter only from 1 to 65535 bicouse <br />
example if enter 10000,2000 is ok but enter 99 not.<br />
<br />
hire 1 example (not working)<br />
 <pre style="margin:20px; line-height:13px">If somthing.Text &gt; '65535 'then<br />
ShowMessage(' you enter biger Number from 65535');<br />
Exit;</pre><br />
hire 2 example (not working)<br />
 <pre style="margin:20px; line-height:13px">var<br />
&nbsp; result : Integer;<br />
&nbsp; string1: String;<br />
&nbsp; string2: String;<br />
begin<br />
string1:='65535';<br />
string2:= somthing.Text;<br />
result := AnsiCompareStr(string1, string2);<br />
if result &lt; 0 then ShowMessage(string1+' &lt; '+string2);</pre><br />
please help haw to solve this.<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>especta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235679.html</guid>
		</item>
		<item>
			<title>Draw chart in delphi</title>
			<link>http://www.daniweb.com/forums/thread235438.html</link>
			<pubDate>Mon, 02 Nov 2009 18:53:34 GMT</pubDate>
			<description>how i can draw chart for some values stored in Access Data base ? 
like this kind of chart in Excel chart wizard . 
i want frist to get the data or nimbers from the data base, then fill string grid by this data , then draw chart or certain columns or rows 
 i want help please</description>
			<content:encoded><![CDATA[<div>how i can draw chart for some values stored in Access Data base ?<br />
like this kind of chart in Excel chart wizard .<br />
i want frist to get the data or nimbers from the data base, then fill string grid by this data , then draw chart or certain columns or rows<br />
 i want help please</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>mohsennour</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235438.html</guid>
		</item>
		<item>
			<title>mathematical calculation on numbers in grids</title>
			<link>http://www.daniweb.com/forums/thread235432.html</link>
			<pubDate>Mon, 02 Nov 2009 18:41:06 GMT</pubDate>
			<description>hi, my program is to call data from D.Base and fill grid by this data, i want to make some calculation on this data like the addition or the sum of the numbers in certain column or row and which the biggest or smallest number in column or row . 
thx.</description>
			<content:encoded><![CDATA[<div>hi, my program is to call data from D.Base and fill grid by this data, i want to make some calculation on this data like the addition or the sum of the numbers in certain column or row and which the biggest or smallest number in column or row .<br />
thx.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>mohsennour</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235432.html</guid>
		</item>
		<item>
			<title>to Mr. fayyaz</title>
			<link>http://www.daniweb.com/forums/thread235427.html</link>
			<pubDate>Mon, 02 Nov 2009 18:22:04 GMT</pubDate>
			<description><![CDATA[dear,  
I was asked about how delphi can read RS323, your reply that you will send a componet to me by email but unfortunatly the emails adresses is snapped on this forum ,i'll try to writ my email here but if they snipped it ,please try to find any way to help me 
 
SNIP 
 
put the symbol of...]]></description>
			<content:encoded><![CDATA[<div>dear, <br />
I was asked about how delphi can read RS323, your reply that you will send a componet to me by email but unfortunatly the emails adresses is snapped on this forum ,i'll try to writ my email here but if they snipped it ,please try to find any way to help me<br />
<br />
SNIP<br />
<br />
put the symbol of instead of (at) which written over the key (2) on your pc key board</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>mohsennour</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235427.html</guid>
		</item>
		<item>
			<title>pascal code</title>
			<link>http://www.daniweb.com/forums/thread235337.html</link>
			<pubDate>Mon, 02 Nov 2009 12:25:39 GMT</pubDate>
			<description>l need help to design a bill wth a main screen showing introductin,customers data entry,individual bill,full bill report,exit. 
the data section should have a customer number,name,actual readind and previuos reading, the bill should show the customer number,actual reading,previous redaing,customer...</description>
			<content:encoded><![CDATA[<div>l need help to design a bill wth a main screen showing introductin,customers data entry,individual bill,full bill report,exit.<br />
the data section should have a customer number,name,actual readind and previuos reading, the bill should show the customer number,actual reading,previous redaing,customer units,price per unit,total,vat,amount to pay. <br />
your help is highly appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>robso2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235337.html</guid>
		</item>
		<item>
			<title><![CDATA[[Delphi 3] using a var in object name.. "edit{i}"]]></title>
			<link>http://www.daniweb.com/forums/thread235153.html</link>
			<pubDate>Sun, 01 Nov 2009 19:23:00 GMT</pubDate>
			<description><![CDATA[Hello 
 
I am using Delphi 3. 
 
I have 30 edit fields named e0, e1, e2, ..., e29. The thing is, that I want to put something into these edit fields, to be specific: I want to put variable a[0] into e0, a[1] into e1 and so on. i could of course write the same thing 30 times, but that takes time and...]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I am using Delphi 3.<br />
<br />
I have 30 edit fields named e0, e1, e2, ..., e29. The thing is, that I want to put something into these edit fields, to be specific: I want to put variable a[0] into e0, a[1] into e1 and so on. i could of course write the same thing 30 times, but that takes time and is probably not the best way to do it.<br />
<br />
So what I need is a way to call object names with variables. For example: (some pseudo-code)<br />
<br />
 <pre style="margin:20px; line-height:13px">for i := 0 to 29 do<br />
&nbsp; e{i} := a[i];</pre><br />
Of course this will not work this way, but I think you can see what I am looking for now.<br />
<br />
Is there any way to do this? It's not the first time it could come handy, but this time I really need it.<br />
<br />
<br />
<br />
<br />
<br />
small offtopic question: is there any open source delphi sdk/ide? i'm kinda tired of delphi 3.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>laki4546</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235153.html</guid>
		</item>
		<item>
			<title>daysbetween function</title>
			<link>http://www.daniweb.com/forums/thread235093.html</link>
			<pubDate>Sun, 01 Nov 2009 13:14:02 GMT</pubDate>
			<description><![CDATA[HI  
 
I want to calculate the amount of days left between now and let's say 5 days from now using daysbetween. everytime i try to run my app, it says that daysbetween is a an undeclared identifier. i want to use this function to limit the length of time a client can use my application. basically a...]]></description>
			<content:encoded><![CDATA[<div>HI <br />
<br />
I want to calculate the amount of days left between now and let's say 5 days from now using daysbetween. everytime i try to run my app, it says that daysbetween is a an undeclared identifier. i want to use this function to limit the length of time a client can use my application. basically a trial version the can try out for a couple of days before it locks up and require serial key to reactivate. usually made a monthly trial but want to go to weekly one. can anybody give me some tips on this. <br />
Thanx again you guys are real life savers.<br />
<br />
Regards <br />
Vdub.za</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Vdub.za</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235093.html</guid>
		</item>
		<item>
			<title>Read of RS232</title>
			<link>http://www.daniweb.com/forums/thread235032.html</link>
			<pubDate>Sun, 01 Nov 2009 08:08:21 GMT</pubDate>
			<description>I have weighing indicator connected to my pc via RS232c , I want to know how I can read the data , how I can store it in access data base? by using Delphi7 programing  
I tried to read by using hyper terminal (windows start menue-programs-accessories-hyper termial) I used the default valuse of...</description>
			<content:encoded><![CDATA[<div>I have weighing indicator connected to my pc via RS232c , I want to know how I can read the data , how I can store it in access data base? by using Delphi7 programing <br />
I tried to read by using hyper terminal (windows start menue-programs-accessories-hyper termial) I used the default valuse of commuication , i succeed to read the value of weight on hyper teminal on this form (P+xxxxxx) where xxxxxx is no of digits of weight.<br />
pls. help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>mohsennour</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235032.html</guid>
		</item>
		<item>
			<title>Dataset</title>
			<link>http://www.daniweb.com/forums/thread235029.html</link>
			<pubDate>Sun, 01 Nov 2009 07:18:09 GMT</pubDate>
			<description>hi 
i have a table with 1 milion record. 
i want to sort and read in  1000 groups. 
i can read diffrent groups but i want to apped 2 datset to each other. 
how can i do that? 
pleae help me. 
thanks</description>
			<content:encoded><![CDATA[<div>hi<br />
i have a table with 1 milion record.<br />
i want to sort and read in  1000 groups.<br />
i can read diffrent groups but i want to apped 2 datset to each other.<br />
how can i do that?<br />
pleae help me.<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>zahmatkesh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235029.html</guid>
		</item>
		<item>
			<title>TClientSockte OnRead issue</title>
			<link>http://www.daniweb.com/forums/thread234427.html</link>
			<pubDate>Thu, 29 Oct 2009 12:33:32 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am using delphi 7 TClientSocket Component non blocking socket. When data arrive on socket i have mapped TClientSocke.OnRead to MyRead function. 
 
function MyRead(Socket: TCustomWinSocket) 
var 
begin 
     Log('ReadIN......'); 
     //Class variable  
      MemoryStream :=...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am using delphi 7 TClientSocket Component non blocking socket. When data arrive on socket i have mapped TClientSocke.OnRead to MyRead function.<br />
<br />
function MyRead(Socket: TCustomWinSocket)<br />
var<br />
begin<br />
     Log('ReadIN......');<br />
     //Class variable <br />
      MemoryStream := TMemoryStream.Create;<br />
        RcvLen := Socket.ReceiveLength;<br />
        MemoryStream.SetSize( RcvLen );<br />
       MemoryStream.SetSize( Socket.ReceiveBuf(  MemoryStream.Memory^, RcvLen ) );<br />
                    FReceiveNotify( Self, MemoryStream.Memory^, MemoryStream.Size );<br />
     Log('ReadOu......');<br />
end;<br />
<br />
The problem i am facing is when i read data from socket but did not return from MyRead function and send notifcation to upper layer to process data at the same time I recevie another read and corrupts my MemoryStream object. How it is possible? I did not reales calling thread, then how can another read read came?<br />
What is the mechanis of OnRead is this called from socket from multiple threads.<br />
<br />
Please help me out on this.<br />
<br />
Regards, IK</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>ARC1234</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234427.html</guid>
		</item>
		<item>
			<title>Scrolling ScrollBox By Mouse</title>
			<link>http://www.daniweb.com/forums/thread234391.html</link>
			<pubDate>Thu, 29 Oct 2009 10:44:15 GMT</pubDate>
			<description>Hi 
I Have Some Problem with ScrollBox As Below 
 
1- If I Put a ScrollBox On a form and Put Some Objects such as TButton,TImage , .... on it If I move an object to right (or down) and trepass right side (or Down) of ScrollBox the horizontal (or vertical) scrollBar will be appear But If Imove an...</description>
			<content:encoded><![CDATA[<div>Hi<br />
I Have Some Problem with ScrollBox As Below<br />
<br />
1- If I Put a ScrollBox On a form and Put Some Objects such as TButton,TImage , .... on it If I move an object to right (or down) and trepass right side (or Down) of ScrollBox the horizontal (or vertical) scrollBar will be appear But If Imove an object to left (or up) and trepass left side (or top) of ScrollBox no scrollBar will be appear<br />
2- how cane I Scroll Vertical ScrollBar of the ScrollBox by mose wheel (middle scrolling button of mouse)<br />
<br />
as brief I want scroll a scrollbox vertically as same as DBGride  vertical scrollBar<br />
<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>fayyaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234391.html</guid>
		</item>
		<item>
			<title>Innosetup: Find values of variables in debugger</title>
			<link>http://www.daniweb.com/forums/thread234250.html</link>
			<pubDate>Thu, 29 Oct 2009 01:21:44 GMT</pubDate>
			<description><![CDATA[There is an option in 'Run'-> 'Evaluate constant' (Ctrl+F4), but I believe that's not working for variables, how can the values in the variables viewed while debugging (tracing by 'Run'-> 'Step In')  
 
Thanks, 
Krishna.]]></description>
			<content:encoded><![CDATA[<div>There is an option in 'Run'-&gt; 'Evaluate constant' (Ctrl+F4), but I believe that's not working for variables, how can the values in the variables viewed while debugging (tracing by 'Run'-&gt; 'Step In') <br />
<br />
Thanks,<br />
Krishna.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Krishna0001</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234250.html</guid>
		</item>
		<item>
			<title>Tform1.print Save</title>
			<link>http://www.daniweb.com/forums/thread233808.html</link>
			<pubDate>Tue, 27 Oct 2009 10:24:42 GMT</pubDate>
			<description>Hi guys, 
 
I got a another question. i want  to know how to go about saving a form1 to disk instead of printing it, so that i can email it to someone in a format that can be opened and read by the recepient. like for instance a home loan application form. i can print it yes but i am stumped about...</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I got a another question. i want  to know how to go about saving a form1 to disk instead of printing it, so that i can email it to someone in a format that can be opened and read by the recepient. like for instance a home loan application form. i can print it yes but i am stumped about coding my app to save the file to disk.<br />
can someone please help<br />
<br />
Thanx<br />
Vdub.za</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Vdub.za</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233808.html</guid>
		</item>
		<item>
			<title>How to open MS Word from Delphi</title>
			<link>http://www.daniweb.com/forums/thread233175.html</link>
			<pubDate>Sun, 25 Oct 2009 15:03:28 GMT</pubDate>
			<description>Hello, 
how can I open MS Word application in my Delphi program?  
I think, it is necessary to work with ActiveX or maybe there is any other way or some free software for this purpose?</description>
			<content:encoded><![CDATA[<div>Hello,<br />
how can I open MS Word application in my Delphi program? <br />
I think, it is necessary to work with ActiveX or maybe there is any other way or some free software for this purpose?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>alikSmehoff</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233175.html</guid>
		</item>
		<item>
			<title>Creating Simple Login Screen In DevPas</title>
			<link>http://www.daniweb.com/forums/thread232863.html</link>
			<pubDate>Sat, 24 Oct 2009 11:07:34 GMT</pubDate>
			<description><![CDATA[I need help creating a login screen. I don't know how to start it off. I have a newb in devpas so please bear with me.]]></description>
			<content:encoded><![CDATA[<div>I need help creating a login screen. I don't know how to start it off. I have a newb in devpas so please bear with me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>josh48</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232863.html</guid>
		</item>
		<item>
			<title>Wait for page to load</title>
			<link>http://www.daniweb.com/forums/thread231990.html</link>
			<pubDate>Wed, 21 Oct 2009 14:32:06 GMT</pubDate>
			<description>Greetings fellow coders, I have read many tutorials, and tried many different code snippets but I have hit a brick wall and decided its time to give my brain a rest and see if other coders can find a solution. 
with the push of a button I will log into a web site, do some tasks, then log out. 
 
I...</description>
			<content:encoded><![CDATA[<div>Greetings fellow coders, I have read many tutorials, and tried many different code snippets but I have hit a brick wall and decided its time to give my brain a rest and see if other coders can find a solution.<br />
with the push of a button I will log into a web site, do some tasks, then log out.<br />
<br />
I got the log in no problem, however my wall is going to the next link...<br />
<br />
The page is NOT waiting to load before continuing.<br />
<br />
As the code is NOW it logs in and before logging i even completes it goes to the next link so log in actually fails.<br />
<br />
 <pre style="margin:20px; line-height:13px">unit Unit1;<br />
<br />
interface<br />
<br />
uses<br />
&nbsp; Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br />
&nbsp; Dialogs, ToolWin, ComCtrls, Menus, ActnMan, ActnCtrls, ActnMenus,<br />
&nbsp; TabNotBk, jpeg, ExtCtrls, OleCtrls, SHDocVw, StdCtrls, PNGButton, mshtml,<br />
&nbsp; Buttons, inifiles;<br />
<br />
type<br />
&nbsp; TForm1 = class(TForm)<br />
&nbsp; &nbsp; MainMenu1: TMainMenu;<br />
&nbsp; &nbsp; Options1: TMenuItem;<br />
&nbsp; &nbsp; opt_switch: TMenuItem;<br />
&nbsp; &nbsp; opt_exit: TMenuItem;<br />
&nbsp; &nbsp; Help1: TMenuItem;<br />
&nbsp; &nbsp; hlp_about<b></b>: TMenuItem;<br />
&nbsp; &nbsp; Panel1: TPanel;<br />
&nbsp; &nbsp; Image2: TImage;<br />
&nbsp; &nbsp; Panel2: TPanel;<br />
&nbsp; &nbsp; PageControl1: TPageControl;<br />
&nbsp; &nbsp; TabSheet1: TTabSheet;<br />
&nbsp; &nbsp; Panel3: TPanel;<br />
&nbsp; &nbsp; WebBrowser1: TWebBrowser;<br />
&nbsp; &nbsp; CoolBar1: TCoolBar;<br />
&nbsp; &nbsp; Animate1: TAnimate;<br />
&nbsp; &nbsp; ToolBar1: TToolBar;<br />
&nbsp; &nbsp; png_btn_home: TPNGButton;<br />
&nbsp; &nbsp; png_btn_back: TPNGButton;<br />
&nbsp; &nbsp; png_btn_forward: TPNGButton;<br />
&nbsp; &nbsp; png_btn_stop: TPNGButton;<br />
&nbsp; &nbsp; png_btn_refresh: TPNGButton;<br />
&nbsp; &nbsp; URLs: TEdit;<br />
&nbsp; &nbsp; StaticText1: TStaticText;<br />
&nbsp; &nbsp; StaticText2: TStaticText;<br />
&nbsp; &nbsp; StaticText3: TStaticText;<br />
&nbsp; &nbsp; StaticText4: TStaticText;<br />
&nbsp; &nbsp; StaticText5: TStaticText;<br />
&nbsp; &nbsp; Button1: TButton;<br />
&nbsp; &nbsp; cur_user: TEdit;<br />
&nbsp; &nbsp; Button2: TButton;<br />
&nbsp; &nbsp; TabSheet2: TTabSheet;<br />
&nbsp; &nbsp; updates: TMemo;<br />
&nbsp; &nbsp; Button3: TButton;<br />
&nbsp; &nbsp; StaticText6: TStaticText;<br />
&nbsp; &nbsp; procedure png_btn_homeClick(Sender: TObject);<br />
&nbsp; &nbsp; procedure png_btn_backClick(Sender: TObject);<br />
&nbsp; &nbsp; procedure png_btn_forwardClick(Sender: TObject);<br />
&nbsp; &nbsp; procedure png_btn_stopClick(Sender: TObject);<br />
&nbsp; &nbsp; procedure png_btn_refreshClick(Sender: TObject);<br />
&nbsp; &nbsp; procedure WebBrowser1CommandStateChange(Sender: TObject;<br />
&nbsp; &nbsp; &nbsp; Command: Integer; Enable: WordBool);<br />
&nbsp; &nbsp; procedure FormCreate(Sender: TObject);<br />
&nbsp; &nbsp; procedure FindAddress;<br />
&nbsp; &nbsp; procedure WebBrowser1BeforeNavigate2(Sender: TObject;<br />
&nbsp; &nbsp; &nbsp; const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,<br />
&nbsp; &nbsp; &nbsp; Headers: OleVariant; var Cancel: WordBool);<br />
&nbsp; &nbsp; procedure opt_exitClick(Sender: TObject);<br />
&nbsp; &nbsp; procedure WebBrowser1DownloadBegin(Sender: TObject);<br />
&nbsp; &nbsp; procedure WebBrowser1DownloadComplete(Sender: TObject);<br />
&nbsp; &nbsp; procedure URLsKeyPress(Sender: TObject; var Key: Char);<br />
&nbsp; &nbsp; procedure Button1Click(Sender: TObject);<br />
&nbsp; &nbsp; procedure WebBrowser1NavigateComplete2(Sender: TObject;<br />
&nbsp; &nbsp; &nbsp; const pDisp: IDispatch; var URL: OleVariant);<br />
&nbsp; &nbsp; procedure WebBrowser1DocumentComplete(Sender: TObject;<br />
&nbsp; &nbsp; &nbsp; const pDisp: IDispatch; var URL: OleVariant);<br />
<br />
<br />
&nbsp; private<br />
&nbsp; &nbsp; { Private declarations }<br />
&nbsp; public<br />
&nbsp; &nbsp; { Public declarations }<br />
&nbsp; end;<br />
<br />
var<br />
&nbsp; Form1: TForm1;<br />
&nbsp; CurDispatch: IDispatch; {save the interface globally }<br />
<br />
implementation<br />
<br />
{$R *.dfm}<br />
<br />
<br />
<br />
procedure TForm1.FormCreate(Sender: TObject);<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { Load the animation from the AVI file in the startup directory.}<br />
&nbsp; &nbsp; Animate1.FileName := ExtractFilePath(Application.ExeName) + 'cool.avi';<br />
&nbsp; &nbsp; WebBrowser1.Navigate('http://MYSITE.com/');<br />
&nbsp; end;<br />
<br />
procedure TForm1.FindAddress;<br />
var<br />
&nbsp; Flags: OLEVariant;<br />
<br />
begin<br />
&nbsp; Flags := 0;<br />
&nbsp; WebBrowser1.Navigate(WideString(Urls.Text), Flags, Flags, Flags, Flags);<br />
end;<br />
<br />
procedure TForm1.png_btn_homeClick(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; WebBrowser1.Navigate('MYSITE.com');<br />
&nbsp; end;<br />
<br />
procedure TForm1.png_btn_backClick(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; WebBrowser1.GoBack; //This will GoBack in the browser<br />
&nbsp; end;<br />
<br />
procedure TForm1.png_btn_forwardClick(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; WebBrowser1.GoForward; //This will go Forward<br />
&nbsp; end;<br />
<br />
procedure TForm1.png_btn_stopClick(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; WebBrowser1.Stop; //This will stop the browser<br />
&nbsp; &nbsp; Animate1.Active := False; // Stop the avi and show the first frame<br />
&nbsp; end;<br />
<br />
procedure TForm1.png_btn_refreshClick(Sender: TObject);<br />
&nbsp; var<br />
&nbsp; &nbsp; vRefresh : OleVariant;<br />
&nbsp; begin<br />
&nbsp; &nbsp; vRefresh := 3;<br />
&nbsp; &nbsp; WebBrowser1.Refresh2(OLEVariant(vRefresh));<br />
&nbsp; end;<br />
<br />
procedure TForm1.WebBrowser1CommandStateChange(Sender: TObject;<br />
&nbsp; Command: Integer; Enable: WordBool);<br />
&nbsp; begin<br />
&nbsp; &nbsp; case Command of<br />
&nbsp; &nbsp; &nbsp; CSC_NAVIGATEBACK: png_btn_back.Enabled := Enable;<br />
&nbsp; &nbsp; &nbsp; CSC_NAVIGATEFORWARD: png_btn_forward.Enabled := Enable;<br />
&nbsp; &nbsp; end;<br />
&nbsp; end;<br />
<br />
procedure TForm1.WebBrowser1BeforeNavigate2(Sender: TObject;<br />
&nbsp; const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,<br />
&nbsp; Headers: OleVariant; var Cancel: WordBool);<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; URLs.Text := URL;<br />
&nbsp; &nbsp; end;<br />
<br />
procedure TForm1.WebBrowser1DownloadBegin(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; Animate1.Active := True; //Play the avi from the first frame indefinitely<br />
&nbsp; end;<br />
<br />
procedure TForm1.WebBrowser1DownloadComplete(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; Animate1.Active := False; // Stop the avi and show the first frame<br />
&nbsp; end;<br />
<br />
procedure TForm1.WebBrowser1NavigateComplete2(Sender: TObject;<br />
&nbsp; const pDisp: IDispatch; var URL: OleVariant);<br />
&nbsp; begin<br />
&nbsp; &nbsp; if CurDispatch = nil then<br />
&nbsp; &nbsp; &nbsp; CurDispatch := pDisp; { save for comparison }<br />
&nbsp; end;<br />
<br />
procedure TForm1.WebBrowser1DocumentComplete(Sender: TObject;<br />
&nbsp; const pDisp: IDispatch; var URL: OleVariant);<br />
&nbsp; begin<br />
&nbsp; &nbsp; if (pDisp = CurDispatch) then<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; CurDispatch := nil; {clear the global variable }<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; end;<br />
<br />
procedure TForm1.URLsKeyPress(Sender: TObject; var Key: Char);<br />
&nbsp; begin<br />
&nbsp; &nbsp; if (Key=#13) then<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; WebBrowser1.Navigate(URLs.Text);<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; end;<br />
<br />
<br />
procedure TForm1.Button1Click(Sender: TObject);<br />
&nbsp; var iDoc: IHtmlDocument2;<br />
&nbsp; &nbsp; i: integer;<br />
&nbsp; &nbsp; ov: OleVariant;<br />
&nbsp; &nbsp; iDisp: IDispatch;<br />
&nbsp; &nbsp; iColl: IHTMLElementCollection;<br />
&nbsp; &nbsp; iInputElement: IHTMLInputElement;<br />
&nbsp; &nbsp; accINI : TIniFile;<br />
&nbsp; begin<br />
&nbsp; &nbsp; accINI := TIniFile.Create(ExtractFilePath(Application.EXEName) + 'acc.ini');<br />
&nbsp; &nbsp; WebBrowser1.ControlInterface.Document.QueryInterface(IHtmlDocument2, iDoc);<br />
&nbsp; &nbsp; &nbsp; if not assigned(iDoc) then begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(' !!!??? Nothing dowloaded ... ');<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exit;<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; ov := 'INPUT';<br />
&nbsp; IDisp := iDoc.all.tags(ov);<br />
&nbsp; &nbsp; if assigned(IDisp) then begin<br />
&nbsp; &nbsp; &nbsp; IDisp.QueryInterface(IHTMLElementCollection, iColl);<br />
&nbsp; &nbsp; if assigned(iColl) then begin<br />
&nbsp; &nbsp; &nbsp; for i := 1 to iColl.Get_length do begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; iDisp := iColl.item(pred(i), 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; iDisp.QueryInterface(IHTMLInputElement, iInputElement);<br />
&nbsp; &nbsp; if assigned(iInputElement) then begin<br />
&nbsp; &nbsp; if iInputElement.Get_name = 'ctl00$ctl00$cpMain$cpMain$LoginBox$Email_Textbox'<br />
//user account e-mail<br />
&nbsp; &nbsp; &nbsp; then iInputElement.Set_value(accINI.ReadString('email','em1',''));<br />
&nbsp; &nbsp; if iInputElement.Get_name = 'ctl00$ctl00$cpMain$cpMain$LoginBox$Password_Textbox'<br />
// password<br />
&nbsp; &nbsp; &nbsp; then iInputElement.Set_value(accINI.ReadString('password','psd1',''));<br />
&nbsp;//Submit Button<br />
&nbsp; &nbsp;  if iInputElement.Get_name = 'dlb'<br />
&nbsp; &nbsp; &nbsp; then iInputElement.Get_form.submit;<br />
// Show the Titel of the currently active Webpage in the titlebar<br />
&nbsp; &nbsp; &nbsp; Caption := Webbrowser1.OleObject.Document.Title<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; end;<br />
&nbsp; cur_user.Text := accINI.ReadString('email','em1','');<br />
&nbsp; accINI.Free;<br />
&nbsp; WebBrowser1.Navigate('http://MYOTHERSITE.com/');&nbsp; &nbsp; &nbsp; &nbsp; // here is where my wall is... the above procedure &quot;WebBrowser1NavigateComplete2&quot; I can ot figure how to recall it and use it here to force a &quot;wait til page fully loads&quot;<br />
&nbsp; end;<br />
<br />
procedure TForm1.opt_exitClick(Sender: TObject);<br />
&nbsp; begin<br />
&nbsp; &nbsp; Application.Terminate;<br />
&nbsp; end;<br />
<br />
end.</pre><br />
Thank you all.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>casper_wang</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231990.html</guid>
		</item>
		<item>
			<title>Incompatible Types TString and TCaption when using memos</title>
			<link>http://www.daniweb.com/forums/thread231382.html</link>
			<pubDate>Mon, 19 Oct 2009 11:45:28 GMT</pubDate>
			<description><![CDATA[Hi, i am trying to add Label captions and Combobox text values to a memo when the button is clicked, and keep recieving the error 'Incompatible Types TString and TCaption' when i try to add values from labels and comboboxes 
 
Im using the code like this: 
  <div class="codeblock"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi, i am trying to add Label captions and Combobox text values to a memo when the button is clicked, and keep recieving the error 'Incompatible Types TString and TCaption' when i try to add values from labels and comboboxes<br />
<br />
Im using the code like this:<br />
 <pre style="margin:20px; line-height:13px">Memo1.Lines.AddStrings(Memo2.Lines);<br />
Memo1.Lines.AddStrings(Memo3.Lines);<br />
Memo1.Lines.AddStrings(Edit1.Text);<br />
Memo1.Lines.AddStrings(Label1.Caption);</pre><br />
i need to know how i can get around this problem and how can i make values appear on the same line in the memo<br />
<br />
for example i need Memo2 with a blank line after, then memo 3 with a blank line after, and then Label1.Caption and Edit1.Text on the same line in the memo.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>revski</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231382.html</guid>
		</item>
		<item>
			<title>Filtering a Database with Combo Boxes</title>
			<link>http://www.daniweb.com/forums/thread231366.html</link>
			<pubDate>Mon, 19 Oct 2009 10:31:04 GMT</pubDate>
			<description><![CDATA[Hey,  
I've been busy coding combo boxes to filter a database but the problem is they don't work together. e.g. If i select a car type, it shows all the cars of that type but if i select blue in one combo box and a car type in the other one: It doesn't filter for blue cars of that type, it just...]]></description>
			<content:encoded><![CDATA[<div>Hey, <br />
I've been busy coding combo boxes to filter a database but the problem is they don't work together. e.g. If i select a car type, it shows all the cars of that type but if i select blue in one combo box and a car type in the other one: It doesn't filter for blue cars of that type, it just filters for the latest one selected.<br />
I'm fairly new to Delphi so i don't have a massive technical knowledge yet so I have no idea how to get them to work together? Any ideas?<br />
<br />
My code looks something like this:<br />
<br />
 <pre style="margin:20px; line-height:13px">procedure TForm1.FormActivate(Sender: TObject);<br />
begin<br />
ADOQuery1.Active := false;<br />
ADOQuery1.sql.Text := 'select * from [car list]&nbsp; ' ;<br />
ADOQuery1.Active := true;<br />
<br />
ADOTable1.Open;<br />
ADOTable1.First;<br />
while not ADOTable1.Eof do<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbtype.Items.add(ADOTable1['car type']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; cmbcolour.Items.add(ADOTable1['car colour']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; ADOTable1.Next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
end;<br />
<br />
procedure TForm1.cmbtypeChange(Sender: TObject);<br />
begin<br />
ADOQuery1.Active := false;<br />
ADOQuery1.sql.Text := 'select * from [car list] where [car type] = &quot;'+ cmbtype.Text+'&quot;';<br />
ADOQuery1.Active := true;<br />
end;<br />
<br />
procedure TForm1.cmbcolourChange(Sender: TObject);<br />
begin<br />
ADOQuery1.Active := false;<br />
ADOQuery1.sql.Text := 'select * from [car list] where [car colour] = &quot;'+ cmbcolour.Text+'&quot;';<br />
ADOQuery1.Active := true;<br />
end;<br />
<br />
end.</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Locria</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231366.html</guid>
		</item>
		<item>
			<title>Connect to an Oracle database</title>
			<link>http://www.daniweb.com/forums/thread231352.html</link>
			<pubDate>Mon, 19 Oct 2009 09:40:54 GMT</pubDate>
			<description><![CDATA[Hello. 
 
I'm trying to connect with an Oracle database but i can't. This is the code that i have write: 
 
dbConexion : TADOConnection; 
 dbCursor : TADODataSet; 
begin 
  dbConexion := TADOConnection.Create(nil); 
  dbConexion.ConnectionString := 'Provider={Microsoft ODBC for...]]></description>
			<content:encoded><![CDATA[<div>Hello.<br />
<br />
I'm trying to connect with an Oracle database but i can't. This is the code that i have write:<br />
<br />
dbConexion : TADOConnection;<br />
 dbCursor : TADODataSet;<br />
begin<br />
  dbConexion := TADOConnection.Create(nil);<br />
  dbConexion.ConnectionString := 'Provider={Microsoft ODBC for Oracle};Server=ss-server;Data Source=;User Id=id;Password=password;';<br />
  dbConexion.LoginPrompt := False;<br />
  dbConexion.Open;<br />
<br />
I don't know whats wrong there.<br />
User id and password are corrects.<br />
<br />
I'm programing in delphi 6.0 and Oracle version is 10g.<br />
<br />
Someone can help me?<br />
<br />
Thank you very much.<br />
<br />
P.S.: Sorry for my low level english.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>araldi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231352.html</guid>
		</item>
		<item>
			<title>Storing an Integer with each row in a TListView?</title>
			<link>http://www.daniweb.com/forums/thread231260.html</link>
			<pubDate>Sun, 18 Oct 2009 22:51:52 GMT</pubDate>
			<description><![CDATA[Hey, 
 
Is there an easy way with a TListView in report mode, to store a unique integer with each row? I've tried using the ".Data" property, but seem to end up with corruption quite often.  
 
I'm trying to do this because I want to associate each row with a primary key ID from a database. At the...]]></description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
Is there an easy way with a TListView in report mode, to store a unique integer with each row? I've tried using the &quot;.Data&quot; property, but seem to end up with corruption quite often. <br />
<br />
I'm trying to do this because I want to associate each row with a primary key ID from a database. At the moment I'm using a dynamically sized array, and adding the row id, to the db ID so I have to use, for example, rowsToIds[lv.SelectedIndex]; but it seems like a long-winded way to do it. <br />
<br />
Is there an easier way to do this? Simple example of exactly what I'm trying to do...<br />
<br />
 <pre style="margin:20px; line-height:13px">procedure TForm1.FormCreate(Sender: TObject);<br />
var<br />
&nbsp; i: Integer;<br />
&nbsp; li: TListItem;<br />
begin<br />
&nbsp; for i := 0 to 50 do begin<br />
&nbsp; &nbsp; li := lv1.Items.Add;<br />
&nbsp; &nbsp; li.Caption := 'xyz';<br />
&nbsp; &nbsp; li.SubItems.Add('abc');<br />
&nbsp; &nbsp; //Store a unique integer with the row here...<br />
&nbsp; end;<br />
end;<br />
<br />
procedure TForm1.lv1DblClick(Sender: TObject);<br />
begin<br />
&nbsp; //Show the stored integer here...<br />
end;</pre><br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>janinesamson</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231260.html</guid>
		</item>
		<item>
			<title>how do i get shellexecute to work?</title>
			<link>http://www.daniweb.com/forums/thread230671.html</link>
			<pubDate>Fri, 16 Oct 2009 11:08:18 GMT</pubDate>
			<description>Hi there, 
 
Me and a buddy are having trouble in getting shellexecute to work in delphi 7. No matter what permetation of the word shellexecute i use, when i want to run the app shellexecute is not recognized. so how do i get shellexecute to work. been trying to get it to open an exe on my hdd. say...</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
Me and a buddy are having trouble in getting shellexecute to work in delphi 7. No matter what permetation of the word shellexecute i use, when i want to run the app shellexecute is not recognized. so how do i get shellexecute to work. been trying to get it to open an exe on my hdd. say something like winamp just to test it out.<br />
<br />
Can anybody please help us with this.<br />
<br />
Thank you in advance,<br />
Vdub.za</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Vdub.za</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230671.html</guid>
		</item>
		<item>
			<title>Guide: How to Rip DVD to AVI on Mac/Windows</title>
			<link>http://www.daniweb.com/forums/thread230571.html</link>
			<pubDate>Fri, 16 Oct 2009 02:26:32 GMT</pubDate>
			<description>For both Mac and Windows users, this guide will show you how to rip and edit your DVD to all other video and audio formats for all the portable players. The output formats mainly include: AVI, MP4, MOV, FLV, WMV, MKV, 3GP, 3G2, MPG, MP3, AAC, M4A, OGG, RA, RAM, RMVB, etc. 
*Note:* 
 Determine that...</description>
			<content:encoded><![CDATA[<div>For both Mac and Windows users, this guide will show you how to rip and edit your DVD to all other video and audio formats for all the portable players. The output formats mainly include: AVI, MP4, MOV, FLV, WMV, MKV, 3GP, 3G2, MPG, MP3, AAC, M4A, OGG, RA, RAM, RMVB, etc.<br />
<span style="font-weight:bold">Note:</span><br />
 Determine that you, in fact, have the rights to copy the DVD for your own personal use. It is not legal to copy DVD's for any and all purposes.<br />
<br />
<span style="font-weight:bold">Part 1:</span> How to rip and edit DVD with a professional <a rel="nofollow" class="t" href="http://www.tipard.com/dvd-ripper-for-mac.html" target="_blank"><span style="font-weight:bold">Mac DVD Ripper</span></a>.<br />
 <br />
<span style="font-weight:bold">Firstly:</span> Download and install Tipard DVD Ripper for Mac<a rel="nofollow" class="t" href="http://www.tipard.com/download/mac/dvd-ripper-intel.dmg" target="_blank"><span style="font-weight:bold">(Intel Version)</span></a> or <a rel="nofollow" class="t" href="http://www.tipard.com/download/mac/dvd-ripper-power-pc.dmg" target="_blank"><span style="font-weight:bold">(Power PC Version)</span></a><br />
<span style="font-weight:bold">Step 1:</span> Load your DVD<br />
 <br />
<a href="http://www.tipard.com/guide/mac-dvd-ripper/interface.jpg" target="_blank">http://www.tipard.com/guide/mac-dvd-.../interface.jpg</a><br />
 <br />
<span style="font-weight:bold">Step 2:</span> Choose the output format and set the exact parameters<br />
Click “Profile” drop down arrow to choose the output format you want.<br />
Click “Settings” to set the exact video and audio parameters to fit for your player. <br />
<span style="font-weight:bold">Step 3:</span> Click “Start” button to begin the conversion<br />
Wait a short moment, the conversion will be finished soon.<br />
 <br />
<span style="font-weight:bold">More editing functions:</span><br />
<span style="font-weight:bold">1: Set audio track and subtitles for your converted video</span><br />
“Audio Track” and “Subtitle” are under the preview window.<br />
<span style="font-weight:bold">2: Set the video effect</span><br />
Click “Effect” to adjust the video Brightness, Contrast, Saturation and Volume for you to get the perfect playing effect.<br />
<br />
<a href="http://www.tipard.com/guide/mac-dvd-ripper/effect.jpg" target="_blank">http://www.tipard.com/guide/mac-dvd-ripper/effect.jpg</a><br />
<br />
<span style="font-weight:bold">3: Get any time-length video clips</span><br />
Click “Trim” button to open the trim window, you can set the exact begin and end time for your clips or just drag the slider bar.<br />
 <br />
<a href="http://www.tipard.com/guide/mac-dvd-ripper/trim.jpg" target="_blank">http://www.tipard.com/guide/mac-dvd-ripper/trim.jpg</a><br />
 <br />
<span style="font-weight:bold">4: Adjust the video play region</span><br />
Click “Crop” to open the crop window to crop off the black edges around your video or adjust any video play region. You can also set the video play ratio when playing on player: keep original, full screen, 16:9, 4:3.<br />
 <br />
<a href="http://www.tipard.com/guide/mac-dvd-ripper/crop.jpg" target="_blank">http://www.tipard.com/guide/mac-dvd-ripper/crop.jpg</a><br />
 <br />
 <span style="font-weight:bold">5: Join several chapters of your DVD into one file</span><br />
Select the chapters that you want to join, and then pick “Merge into one file”. After conversion, these chapters will be saved into one file.<br />
 <br />
<span style="font-weight:bold">Part 2:</span>How to rip and edit DVD with a powerful  <a rel="nofollow" class="t" href="http://www.tipard.com/dvd-ripper.html" target="_blank"><span style="font-weight:bold">DVD rip software</span></a>.<br />
<br />
<span style="font-weight:bold">Firstly:</span> Download and install <a rel="nofollow" class="t" href="http://www.tipard.com/download/dvd-ripper.exe" target="_blank">Tipard DVD Ripper</a>.<br />
<span style="font-weight:bold">Step 1: </span>Click “Load DVD” button to load your DVD. <br />
This professional DVD Ripper can load three DVD source, you can load your DVD from DVD drive, DVD folder in your PC and also IFO file. <br />
<br />
<a href="http://www.tipard.com/guide/dvd-ripper/interface.jpg" target="_blank">http://www.tipard.com/guide/dvd-ripper/interface.jpg</a> <br />
<br />
<span style="font-weight:bold">Step 2:</span>Select the output video format you want from the “Profile” drop-down list.<br />
<span style="font-weight:bold">Step 3:</span>Click the “Start” button to begin your conversion.<br />
You can have a coffee or have a walk now ! In a short while the conversion will be finished.<br />
<br />
<span style="font-weight:bold">Tips:</span><br />
Some powerful editing functions are available as followings.<br />
<span style="font-weight:bold">1: Capture your favorite picture.</span><br />
If you like the current image of the video you can use the “Snapshot” opinion. Just click the “Snapshot” button the image will be saved.<br />
<span style="font-weight:bold">2: Merge videos into one file.</span><br />
Just check the “merge into one file” option if you want to merge the selected contents into one file  As default the merged file is named after the first selected file (either a title or a chapter).<br />
<span style="font-weight:bold">3: Set video effect.</span><br />
Click “Effect” to adjust the video Brightness, Contrast, Saturation and Volume for you to get the perfect playing effect.<br />
<br />
<a href="http://www.tipard.com/guide/dvd-ripper/effect.jpg" target="_blank">http://www.tipard.com/guide/dvd-ripper/effect.jpg</a><br />
<br />
<span style="font-weight:bold">4: Trim any clip of your video.</span><br />
You can get any clip of your video by just using the “Trim” function. You can click the “Trim” button and a dialogue pops up. You can set the Start Time and End Time or just drag the slide bar to the position you want and start conversion then you can get the clip.<br />
<br />
<a href="http://www.tipard.com/guide/dvd-ripper/trim.jpg" target="_blank">http://www.tipard.com/guide/dvd-ripper/trim.jpg</a><br />
<br />
<span style="font-weight:bold">5: Crop video</span><br />
a. To crop your movie video, you can just drag your mouse cursor from four sides and four angles.<br />
Crop by setting the crop values<br />
b. There are four crop values on the lower right part of the crop window: Top, Bottom, Left and Right. You can set each value to crop your movie video, and the crop frame will move accordingly.<br />
<br />
<a href="http://www.tipard.com/guide/dvd-ripper/crop.jpg" target="_blank">http://www.tipard.com/guide/dvd-ripper/crop.jpg</a><br />
<br />
Your problem has been solved as long as you click your mouse following the guide above. It is very easy. <br />
<br />
Tipard<a rel="nofollow" class="t" href="http://tipard.com/dvd-ripper-pack.html" target="_blank"> DVD Ripper Pack</a> is an integrated program with <a rel="nofollow" class="t" href="http://tipard.com/dvd-ripper.html" target="_blank">DVD Ripper</a>, Video Converter and iPod to PC Transfer.<br />
<br />
<br />
<br />
<a rel="nofollow" class="t" href="http://www.tipard.com/dvd-ripper-for-mac.html" target="_blank">Mac DVD Ripper</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Jamimey</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230571.html</guid>
		</item>
		<item>
			<title>Error read xml</title>
			<link>http://www.daniweb.com/forums/thread230084.html</link>
			<pubDate>Wed, 14 Oct 2009 10:00:21 GMT</pubDate>
			<description>Hello,  
 
Firstly I would like to say sorry for my low level english. 
 
Well, my problem is I am trying to do a program wich read from a xml file. I am programing in delphi 6.  
 
This is a part of code where you can see the commands that I use. 
 
procedure TForm1.Button1Click(Sender: TObject);...</description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
Firstly I would like to say sorry for my low level english.<br />
<br />
Well, my problem is I am trying to do a program wich read from a xml file. I am programing in delphi 6. <br />
<br />
This is a part of code where you can see the commands that I use.<br />
<br />
procedure TForm1.Button1Click(Sender: TObject);<br />
var<br />
  XMLInfoService: TXMLDocument;<br />
  IXMLNodeError: IXMLNode;<br />
begin<br />
<br />
   try<br />
    XMLInfoService := TXMLDocument.Create(nil);<br />
    XMLInfoService.LoadFromFile ('Prueba.xml');<br />
    XMLInfoService.Active := True;<br />
<br />
    IXMLNodeError := XMLInfoService.DocumentElement.ChildNodes.FindNode('error').ChildNodes.FindNode('cod_error');<br />
<br />
If I stop the process in <span style="font-style:italic">XMLInfoService.Active := True</span>, when I put the cursor over <span style="font-style:italic">XMLInfoService.LoadFromFile('Prueba.xml')</span>, appears a tag that contain this:<br />
<br />
XMLInfoService.LoadFromFile = Inaccesible value<br />
<br />
And when the process arrives to <span style="font-style:italic">IXMLNodeError := ...</span>, the program stops with EAccessViolation error.<br />
<br />
Could someone help me?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>araldi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230084.html</guid>
		</item>
		<item>
			<title>Simple drawn line a compnent</title>
			<link>http://www.daniweb.com/forums/thread229912.html</link>
			<pubDate>Tue, 13 Oct 2009 18:56:30 GMT</pubDate>
			<description>Hi, 
 
I want to create a line on a canvas ( similar to a visio connector but not as fancy) which will allow a mouseover event to be trapped ( this would trigger a property sheet to display the atributes of the line - a microwave link in my case ).  I have tried deriving Tgraphic components but...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I want to create a line on a canvas ( similar to a visio connector but not as fancy) which will allow a mouseover event to be trapped ( this would trigger a property sheet to display the atributes of the line - a microwave link in my case ).  I have tried deriving Tgraphic components but cannot seem to get this right and using a Timage with similar results.   Any clues ?<br />
<br />
Thanks<br />
<br />
P</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>quaifp1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229912.html</guid>
		</item>
		<item>
			<title>IF and ELSE procedures</title>
			<link>http://www.daniweb.com/forums/thread229764.html</link>
			<pubDate>Tue, 13 Oct 2009 09:08:26 GMT</pubDate>
			<description>Hi, i am trying to get my application to check, which radiobutton is selected, and then perform instructions based on the selection. 
 
but i cant seem to use a IF and ELSE procedure to do this, can somebody help me out as to what procedure i should use.</description>
			<content:encoded><![CDATA[<div>Hi, i am trying to get my application to check, which radiobutton is selected, and then perform instructions based on the selection.<br />
<br />
but i cant seem to use a IF and ELSE procedure to do this, can somebody help me out as to what procedure i should use.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>revski</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229764.html</guid>
		</item>
		<item>
			<title>search engine for delphi 7</title>
			<link>http://www.daniweb.com/forums/thread229738.html</link>
			<pubDate>Tue, 13 Oct 2009 07:03:42 GMT</pubDate>
			<description>Hi guys,  
 
I am still a bit new to delphi and was wondering if someone can help me. I need to figure out how to write a search engine into an app i am writing in delphi. any help on how i may be able to do this would be greatly appreciated. 
 
Thank You, 
Vdub.za</description>
			<content:encoded><![CDATA[<div>Hi guys, <br />
<br />
I am still a bit new to delphi and was wondering if someone can help me. I need to figure out how to write a search engine into an app i am writing in delphi. any help on how i may be able to do this would be greatly appreciated.<br />
<br />
Thank You,<br />
Vdub.za</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Vdub.za</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229738.html</guid>
		</item>
		<item>
			<title>Could you tell me how can I do this kind of question.</title>
			<link>http://www.daniweb.com/forums/thread229488.html</link>
			<pubDate>Mon, 12 Oct 2009 10:12:54 GMT</pubDate>
			<description><![CDATA[Dear ALL, 
 
Could you tell me how can I do this kind of question if I do not working with the computer and please find the attached document for your reference - it is the answer of the question? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Dear ALL,<br />
<br />
Could you tell me how can I do this kind of question if I do not working with the computer and please find the attached document for your reference - it is the answer of the question?<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
Complete the table below to show what each variable holds, the user enters the numbers 5, 6, 7, 8, 9<br />
<br />
evens:=0;<br />
for count:= 1 to 5 do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; writeln('Please enter a number');<br />
&nbsp; &nbsp; &nbsp; readln(numbers[count]);<br />
&nbsp; &nbsp; &nbsp; if (numbers[count] mod 2 = 0) then<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; evens := evens + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp; &nbsp; end;<br />
writeln(evens);</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229488.html</guid>
		</item>
		<item>
			<title>Code Snippet Number in Edit fields  - check :)</title>
			<link>http://www.daniweb.com/code/snippet229266.html</link>
			<pubDate>Sun, 11 Oct 2009 09:02:38 GMT</pubDate>
			<description>Procedure which checks the number of eating properly entered in  
edit box with a comma</description>
			<content:encoded><![CDATA[<div>Procedure which checks the number of eating properly entered in <br />
edit box with a comma</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>alenturuskovic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229266.html</guid>
		</item>
		<item>
			<title>DBISAM Question</title>
			<link>http://www.daniweb.com/forums/thread228940.html</link>
			<pubDate>Fri, 09 Oct 2009 18:34:23 GMT</pubDate>
			<description><![CDATA[Sorry if this is in the wrong section but there really is no category that matches what i need to ask, I only posted here because it seems a lot of Delphi people use DBISAM. 
 
Basically, I read the manual and see where I can read the current auto_inc value of a table using LASTAUTOINC('tablename')...]]></description>
			<content:encoded><![CDATA[<div>Sorry if this is in the wrong section but there really is no category that matches what i need to ask, I only posted here because it seems a lot of Delphi people use DBISAM.<br />
<br />
Basically, I read the manual and see where I can read the current auto_inc value of a table using LASTAUTOINC('tablename') but for some reason its not working.<br />
<br />
here is the SQL I am trying to run<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">INSERT INTO ChannelListings (ChannelNo, ChannelAccountNo, ProductNo, SKU, Price, IsUseCurrentRetailPrice, IsOnSale, IsActive, IsRemove, IsDelete, IsGiftwrapAvailable, IsGiftMessageAvailable, IsUseProductNoAsSKU, CategoryNo)<br />
VALUES (4, 2, '080689000270', LASTAUTOINC('ChannelListings'), 1.6, True, False, True, False, False, False, False, False, 20)</pre><br />
But when i try to run it I get the error <br />
Expecting NULL, FixedChar, GUID, String, Memo, or BLOB expression but instead found LASTAUTOINC in INSERT SQL statment<br />
<br />
Yet right from the DBISAM manual they show<br />
<br />
 <pre style="margin:20px; line-height:13px">INSERT INTO orders (custno,empno) VALUES (LASTAUTOINC('customer'),200);</pre><br />
Hopefully someone has used DBISAM and seen this issue<br />
<br />
Thanks Don</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>=OTS=G-Man</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228940.html</guid>
		</item>
		<item>
			<title>Formatting ComboBoxes</title>
			<link>http://www.daniweb.com/forums/thread228041.html</link>
			<pubDate>Tue, 06 Oct 2009 12:29:27 GMT</pubDate>
			<description>hi 
 
i have a question about formatting combo boxes. 
 
i have 1 combobox on the form with a label and a calculate button, the combo box is layed out like this 180 / 50 like a tyre size. 
 
The calculation to be performed is the 1st number X the 2nd Number, the way the sizes are layed out they...</description>
			<content:encoded><![CDATA[<div>hi<br />
<br />
i have a question about formatting combo boxes.<br />
<br />
i have 1 combobox on the form with a label and a calculate button, the combo box is layed out like this 180 / 50 like a tyre size.<br />
<br />
The calculation to be performed is the 1st number X the 2nd Number, the way the sizes are layed out they must be in a single combo box with the above format.<br />
<br />
Can somebody please help me get delphi to calculate the 2 values.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>revski</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228041.html</guid>
		</item>
		<item>
			<title>Better way to do this Robot?</title>
			<link>http://www.daniweb.com/forums/thread227633.html</link>
			<pubDate>Sun, 04 Oct 2009 22:26:57 GMT</pubDate>
			<description><![CDATA[Well, again from my current school project. 
I've been told to make a traffic light that changes automatically, and you should be able to specify how many times the cycle should run. 
 
I have my working version, but I just want to know if there's a shorter way to do this? 
 
Pre-note: "siklus(se)"...]]></description>
			<content:encoded><![CDATA[<div>Well, again from my current school project.<br />
I've been told to make a traffic light that changes automatically, and you should be able to specify how many times the cycle should run.<br />
<br />
I have my working version, but I just want to know if there's a shorter way to do this?<br />
<br />
Pre-note: &quot;siklus(se)&quot; is cycles, &quot;Teller&quot; is counter.<br />
And, we haven't learned of loops yet, so I can't use them.<br />
<br />
 <pre style="margin:20px; line-height:13px">var<br />
&nbsp; frmRobot: TfrmRobot;<br />
&nbsp; iRTeller, iTeller, iSiklusse : integer;<br />
<br />
{ ... }<br />
<br />
procedure TfrmRobot.bmbBeginClick(Sender: TObject);<br />
begin<br />
<br />
&nbsp; iSiklusse := sedSiklus.Value;<br />
&nbsp; tmrRobot.Enabled := True;<br />
&nbsp; bmbBegin.Enabled := False;<br />
&nbsp; bmbRetry.Enabled := True;<br />
<br />
end; { proc:Begin }<br />
<br />
procedure TfrmRobot.tmrRobotTimer(Sender: TObject);<br />
begin<br />
<br />
&nbsp; &nbsp; if iTeller &lt; iSiklusse then<br />
&nbsp; &nbsp; &nbsp; begin<br />
<br />
&nbsp; &nbsp; Inc(iRTeller, 1);<br />
<br />
&nbsp; &nbsp; if iRTeller = 1 then<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpGroen.Visible := True;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpOranje.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpRed.Visible := False;<br />
&nbsp; &nbsp; &nbsp; end { if:1 }<br />
<br />
&nbsp; &nbsp;  else if iRTeller = 2 then<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpGroen.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpOranje.Visible := True;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpRed.Visible := False;<br />
&nbsp; &nbsp; &nbsp; end { else if:2 }<br />
<br />
&nbsp; &nbsp;  else if iRTeller = 3 then<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpGroen.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpOranje.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpRed.Visible := True;<br />
&nbsp; &nbsp;  end { else if:3 }<br />
<br />
&nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpGroen.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpOranje.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; shpRed.Visible := False;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Inc(iTeller, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; iRTeller := 0;<br />
&nbsp; &nbsp; &nbsp; end; { else }<br />
<br />
&nbsp; &nbsp; end; { if:iSiklus }<br />
<br />
end; { proc:Timer }<br />
<br />
procedure TfrmRobot.FormActivate(Sender: TObject);<br />
begin<br />
<br />
&nbsp; iRTeller := 0;<br />
&nbsp; bmbRetry.Enabled := False;<br />
<br />
end; { proc:FormAcrivate }<br />
<br />
procedure TfrmRobot.bmbRetryClick(Sender: TObject);<br />
begin<br />
<br />
&nbsp; iTeller := 0;<br />
&nbsp; iRTeller := 0;<br />
&nbsp; iSiklusse := 0;<br />
&nbsp; bmbBegin.Enabled := True;<br />
<br />
end;<br />
<br />
end. { unit }</pre><br />
Thanks again.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>prefer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227633.html</guid>
		</item>
		<item>
			<title>How to find the most common word in a Linked List in Pascal.</title>
			<link>http://www.daniweb.com/forums/thread227594.html</link>
			<pubDate>Sun, 04 Oct 2009 16:14:23 GMT</pubDate>
			<description><![CDATA[Hi I'm using the Pascal language and I need help with the following problem. You need to find the most common word read in by a user of arbitrary length and then display the amount of times its found in the input. I placed all the words into a linked list without hassle but the problem is I don't...]]></description>
			<content:encoded><![CDATA[<div>Hi I'm using the Pascal language and I need help with the following problem. You need to find the most common word read in by a user of arbitrary length and then display the amount of times its found in the input. I placed all the words into a linked list without hassle but the problem is I don't know how to count the repeated words in the linked list. Can someone here help me? <br />
<br />
P.S. It has to be a linked list, but since I'm very new to the linked list data structure, if you could explain what you did, I'd appreciate it.<br />
<br />
Thanks<br />
Havoc433<br />
<br />
 <pre style="margin:20px; line-height:13px">uses crt;<br />
type<br />
nodePointer = ^node;<br />
&nbsp; &nbsp; &nbsp; &nbsp; node&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = record<br />
&nbsp; &nbsp; &nbsp; &nbsp; word&nbsp; &nbsp; &nbsp; &nbsp; : string;<br />
&nbsp; &nbsp; &nbsp; &nbsp; next&nbsp; &nbsp; &nbsp; &nbsp; : nodePointer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; list = nodePointer;&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
var<br />
&nbsp; &nbsp; &nbsp; &nbsp; wordlist:list;<br />
&nbsp; &nbsp; &nbsp; &nbsp; words&nbsp; &nbsp; &nbsp; &nbsp; :nodePointer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; newword :nodePointer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; input&nbsp; &nbsp; &nbsp; &nbsp; : string;<br />
&nbsp; &nbsp; &nbsp; &nbsp; i&nbsp; &nbsp; &nbsp; &nbsp; : integer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:integer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cut&nbsp; &nbsp; &nbsp; &nbsp; :string;<br />
<br />
begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; clrscr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; new(wordlist);<br />
&nbsp; &nbsp; &nbsp; &nbsp; wordlist:=nil;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; write('Enter a sentence:');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(input);<br />
&nbsp; &nbsp; &nbsp; &nbsp; input:=input+' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for i:=1 to length(input) do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if input[i]=' ' then&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; position:=pos(input[i],input);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cut:=copy(input,1,position-1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete(input,1,position);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new(newword);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newword^.word := cut;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newword^.next := wordlist;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wordlist := newword;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; words:=wordlist;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while words &lt;&gt; nil do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(words^.word);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; words := words^.next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
end.</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>havoc433</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227594.html</guid>
		</item>
		<item>
			<title>Ordinal types</title>
			<link>http://www.daniweb.com/forums/thread227575.html</link>
			<pubDate>Sun, 04 Oct 2009 13:30:57 GMT</pubDate>
			<description><![CDATA[Hi everyone! 
 
I think I'll be on here allot from now on, pretty useful forum, well done! 
 
Anyways, I'm doing a project for school and it's got me stuck. 
See I didn't understand the error message the compiler gave me at first, but then I read it on ...some website, it says that the Float/Real...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone!<br />
<br />
I think I'll be on here allot from now on, pretty useful forum, well done!<br />
<br />
Anyways, I'm doing a project for school and it's got me stuck.<br />
See I didn't understand the error message the compiler gave me at first, but then I read it on ...some website, it says that the Float/Real variable types are not a valid ordinal type?<br />
<br />
Basically what I need to do is create a program that would ask for six grade points, and then give a average and the symbol they reached.<br />
Here is the error messages I received;<br />
 <pre style="margin:20px; line-height:13px">[Error] gradering.pas(49): Ordinal type required<br />
[Error] gradering.pas(63): '.' expected but ';' found<br />
[Fatal Error] gradering_p.dpr(5): Could not compile used unit 'gradering.pas'</pre>I'm first focusing on the first error, then moving on to the second one, help with that would be appreciated as well.<br />
<br />
Here is what I have so far, sorry for the language, I'm doing IT in an Afrikaans school.<br />
 <pre style="margin:20px; line-height:13px">unit gradering;<br />
<br />
interface<br />
<br />
uses<br />
&nbsp; Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br />
&nbsp; Dialogs, StdCtrls, Buttons, ExtCtrls;<br />
<br />
type<br />
&nbsp; TfrmGradering = class(TForm)<br />
&nbsp; &nbsp; pnlAgtergrond: TPanel;<br />
&nbsp; &nbsp; lblPunt: TLabel;<br />
&nbsp; &nbsp; lblAf_punt: TLabel;<br />
&nbsp; &nbsp; lblPunt2: TLabel;<br />
&nbsp; &nbsp; edtPunt: TEdit;<br />
&nbsp; &nbsp; lblAfvoer: TLabel;<br />
&nbsp; &nbsp; bmbRetry: TBitBtn;<br />
&nbsp; &nbsp; bmbClose: TBitBtn;<br />
&nbsp; &nbsp; btnTel: TButton;<br />
&nbsp; &nbsp; procedure btnTelClick(Sender: TObject);<br />
&nbsp; private<br />
&nbsp; &nbsp; { Private declarations }<br />
&nbsp; public<br />
&nbsp; &nbsp; { Public declarations }<br />
&nbsp; end;<br />
<br />
var<br />
&nbsp; frmGradering: TfrmGradering;<br />
&nbsp; iTeller : integer;<br />
&nbsp; rTotaal, rGemiddeld : real;<br />
&nbsp; sSimbool, sAfvoer : string;<br />
<br />
implementation<br />
<br />
{$R *.dfm}<br />
<br />
procedure TfrmGradering.btnTelClick(Sender: TObject);<br />
begin<br />
<br />
&nbsp; if iTeller &lt; 6 then<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; Inc(iTeller, 1);<br />
&nbsp; &nbsp; &nbsp; rTotaal := rTotaal + StrToInt(edtPunt.Text);<br />
&nbsp; &nbsp; &nbsp; lblAf_punt.Caption := IntToStr(iTeller);<br />
&nbsp; &nbsp; end<br />
&nbsp; else if iTeller = 6 then<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; rGemiddeld := ((rTotaal / 6) * 100);<br />
&nbsp; &nbsp; &nbsp; case rGemiddeld of<br />
&nbsp; &nbsp; &nbsp; &nbsp;  80..100 : sSimbool := 'A';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  70..79&nbsp; : sSimbool := 'B';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  60..69&nbsp; : sSimbool := 'C';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  50..59&nbsp; : sSimbool := 'D';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  40..49&nbsp; : sSimbool := 'E';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  30..39&nbsp; : sSimbool := 'F';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  20..29&nbsp; : sSimbool := 'G';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else sSimbool := 'H';<br />
&nbsp; &nbsp; &nbsp; end<br />
&nbsp; end<br />
<br />
end;<br />
<br />
end;<br />
<br />
end.</pre><br />
Thanks in advance guys!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>prefer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227575.html</guid>
		</item>
		<item>
			<title>What is wrong of my program?</title>
			<link>http://www.daniweb.com/forums/thread227265.html</link>
			<pubDate>Fri, 02 Oct 2009 16:51:36 GMT</pubDate>
			<description><![CDATA[Dear ALL, 
 
Could you tell me what is wrong of my program?  The problem is the following wording are often restart: "PLEASE RUN THIS PROGRAM IN A MAXIMUM WINDOW..., TONY YEUNG PRESENT... 
 
How can I add some music for it?  How can I change the colour of the font and display into screen? 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Dear ALL,<br />
<br />
Could you tell me what is wrong of my program?  The problem is the following wording are often restart: &quot;PLEASE RUN THIS PROGRAM IN A MAXIMUM WINDOW..., TONY YEUNG PRESENT...<br />
<br />
How can I add some music for it?  How can I change the colour of the font and display into screen?<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
Program yeungkt2;<br />
{$APPTYPE CONSOLE}<br />
{<br />
&nbsp; &nbsp; IT113 Assignment - Who wants to be a student millionaire.<br />
&nbsp; &nbsp; Author:&nbsp; Tony Yeung<br />
&nbsp; &nbsp; Date: 16 October 2009<br />
&nbsp; &nbsp; Version 2.03<br />
}<br />
uses<br />
&nbsp; SysUtils,OurCrt;<br />
Type<br />
&nbsp;  hotSeat_record=record<br />
&nbsp;  lastname&nbsp; :string[12];<br />
&nbsp;  firstname :string[12];<br />
&nbsp;  address&nbsp;  :string[25];<br />
End;<br />
<br />
//*****************&nbsp; USED VARIABLES&nbsp;  ******************************************<br />
Var User_Choice&nbsp; &nbsp; :Integer;&nbsp; //global variable<br />
&nbsp; &nbsp; hotSeat_file&nbsp; :file of hotSeat_record;<br />
&nbsp; &nbsp; hotSeat&nbsp; &nbsp; &nbsp;  :array[1..100]of hotSeat_record;<br />
&nbsp; &nbsp; numberRecords&nbsp; :integer;<br />
&nbsp; &nbsp; numbers&nbsp; &nbsp; &nbsp; &nbsp; :array[1..6] of integer;<br />
&nbsp; &nbsp; generate&nbsp; &nbsp; &nbsp;  :boolean;<br />
&nbsp; &nbsp; ONE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :hotSeat_record;<br />
//********************&nbsp; PROCEDURE LOAD&nbsp; ****************************************<br />
Procedure load;<br />
Var<br />
&nbsp;  count:integer;<br />
begin<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PLEASE RUN THIS PROGRAM IN A MAXIMIZED WINDOW');<br />
&nbsp; writeln;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PRESS &lt;ENTER&gt; TO CONTINUE');<br />
&nbsp; readln;<br />
&nbsp; clrscr;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TO');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TON');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY ');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY Y');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YE');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEU');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUN');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG ');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG P');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PR');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRE');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRES');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRESE');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRESEN');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRESENT');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRESENT .');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRESENT ..');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
&nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TONY YEUNG PRESENT ...');<br />
&nbsp; sleep(200);<br />
&nbsp; clrscr;<br />
<br />
<br />
&nbsp; &nbsp; assign(hotSeat_file,'hotSeat.dat');<br />
&nbsp; &nbsp; reset(hotSeat_file);<br />
&nbsp; &nbsp; numberRecords:= filesize(hotSeat_file);<br />
&nbsp; for count:=&nbsp; 1 to numberRecords do<br />
&nbsp; Begin<br />
&nbsp; &nbsp; read(hotSeat_file,hotSeat[count]);<br />
&nbsp; end;<br />
end;<br />
//*********************&nbsp; PROCEDURE CONTESTANTSLIST&nbsp; ****************************<br />
Procedure ContestantsList;<br />
Var<br />
&nbsp;  count:integer;<br />
Begin<br />
&nbsp; numberRecords:= filesize(hotSeat_file);<br />
&nbsp; WriteLn('...LAST NAME..FIRST NAME..................ADDRESS......');<br />
&nbsp; WriteLn;<br />
&nbsp; for count:=&nbsp; 1 to (filesize(hotSeat_file)) do<br />
&nbsp; Begin<br />
&nbsp; WriteLn(hotSeat[count].firstname:12,hotSeat[count].lastname:12,hotSeat[count].address:25);<br />
&nbsp; sleep(100);<br />
&nbsp; End;<br />
&nbsp; readln;<br />
end;<br />
//*************************&nbsp; PROCEDURE GENERATE10FINALISTS&nbsp; ********************<br />
Procedure Generate6finalists;<br />
var<br />
&nbsp; count,temp:integer;<br />
begin<br />
&nbsp; writeln('Here are the 6 finalist''s numbers');<br />
&nbsp; randomize;<br />
&nbsp; for count:= 1 to 6 do<br />
&nbsp; begin<br />
&nbsp; &nbsp; temp:=random(numberRecords)+1;<br />
&nbsp; &nbsp; while(temp=numbers[1])<br />
&nbsp; &nbsp; &nbsp;  or (temp=numbers[2])<br />
&nbsp; &nbsp; &nbsp; &nbsp;  or (temp=numbers[3])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  or (temp=numbers[4])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  or (temp=numbers[5])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  or (temp=numbers[6]) do<br />
<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; temp:=random(numberRecords)+1;<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; numbers[count]:=temp;<br />
&nbsp; &nbsp; generate := true;<br />
&nbsp; end;<br />
&nbsp; for count := 1 to 6 do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; writeln('&nbsp; &nbsp;  ***&lt;$$$$$&gt;****&nbsp; ' ,(numbers[count]), '&nbsp; ****&lt;$$$$&gt;****');<br />
&nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; sleep(100);<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GOOD LUCK !!!!!!!');<br />
&nbsp; &nbsp; readln;<br />
&nbsp; &nbsp; //clrscr;<br />
end;<br />
//************************&nbsp; PROCEDURE SHOWFINALISTS&nbsp; ***************************<br />
Procedure ShowFinalists;<br />
&nbsp; var<br />
&nbsp; count: integer;<br />
&nbsp; Begin<br />
&nbsp; if (generate = true)&nbsp; then<br />
&nbsp; begin<br />
&nbsp; &nbsp; WriteLn('3 pressed,finding and listing the finalists...');<br />
&nbsp; &nbsp; WriteLn('...LAST NAME..FIRST NAME..................ADDRESS......');<br />
&nbsp; &nbsp; for count:=1 to 6 do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; writeln(hotSeat[numbers[count]].firstname:12, hotSeat[numbers[count]].lastname:12, hotSeat[numbers[count]].address:20);<br />
&nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; sleep(200);<br />
&nbsp; &nbsp; end<br />
&nbsp; end<br />
&nbsp; else<br />
&nbsp; &nbsp; &nbsp; writeln('Please generate finalist number first!');<br />
&nbsp; &nbsp; readln;<br />
&nbsp; End;<br />
//***************************&nbsp; PROCEDURE SAVE&nbsp; *********************************<br />
Procedure save;<br />
&nbsp; var<br />
&nbsp; count: integer;<br />
&nbsp; Begin<br />
&nbsp; &nbsp; reset(hotSeat_file);<br />
&nbsp; &nbsp; for count:=1 to filesize(hotSeat_file) do<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp;  write(hotSeat_file,hotSeat[count]);<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; end;<br />
//************************&nbsp; PROCEDURE CHANGEDETAILS&nbsp; ***************************<br />
Procedure ChangeDetails;<br />
&nbsp; var<br />
&nbsp; count: integer;<br />
&nbsp; first,last,address: string;<br />
&nbsp; name: boolean;<br />
<br />
&nbsp; Begin<br />
&nbsp; &nbsp; name:=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; WriteLn('4 pressed,changing the address a friend details...');<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; WriteLn('Please enter your first name.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(first);<br />
&nbsp; &nbsp; &nbsp; &nbsp; WriteLn('Please enter your last name.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(last);<br />
&nbsp; &nbsp; &nbsp; &nbsp; for count:=1 to filesize(hotSeat_file) do<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (hotSeat[count].firstname=first) and(hotSeat[count].lastname=last) then<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Well. We''ve found your records.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Please enter your new address');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(address);<br />
&nbsp; &nbsp; &nbsp; &nbsp; hotSeat[count].address:=address;<br />
&nbsp; &nbsp; &nbsp; &nbsp; name:=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if name=false then<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Sorry!&nbsp; We do not have your records from your database.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; &nbsp; write('Press &lt;ENTER&gt; to save changes and return to the main menu.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; save;<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
//***********************&nbsp; PROCEDURE ENROLCONTESTANTS&nbsp; *************************<br />
Procedure EnrolContestant;<br />
&nbsp; var<br />
&nbsp; &nbsp; &nbsp; &nbsp; INDEX_:INTEGER;<br />
&nbsp; &nbsp; &nbsp; &nbsp; count :integer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; name&nbsp; :boolean;<br />
&nbsp; Begin<br />
&nbsp; &nbsp; name:=false;<br />
&nbsp; &nbsp; write('Please enter your first name - if you''re new: ');<br />
&nbsp; &nbsp; readln(ONE.FIRSTNAME);<br />
&nbsp; &nbsp; write('Please enter your last name: ');<br />
&nbsp; &nbsp; readln(ONE.LASTNAME);<br />
&nbsp; &nbsp; write('Lastly, please enter your address: ');<br />
&nbsp; &nbsp; readln(ONE.ADDRESS);<br />
&nbsp; &nbsp; write('Please press &lt;ENTER&gt; for checking these data..');<br />
&nbsp; &nbsp; READLN;//*<br />
&nbsp; &nbsp; for count:=1 to filesize(hotSeat_file) do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; if (hotSeat[count].lastname=ONE.FIRSTNAME) and (hotSeat[count].firstname=ONE.LASTNAME) then<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; name:=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('You''re a contestant already.');<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; if (name = false) then<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; CLOSE(HOTSEAT_FILE);<br />
&nbsp; &nbsp; &nbsp; &nbsp; WRITELN('Checking is over,everything went fine.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Please press &lt;ENTER&gt; again to save your details and return to main menu.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln;<br />
&nbsp; &nbsp; &nbsp; &nbsp; INDEX_:=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; RESET(HOTSEAT_FILE);<br />
&nbsp; &nbsp; &nbsp; &nbsp; WHILE (EOF(HOTSEAT_FILE)=FALSE)DO BEGIN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  READ(HOTSEAT_FILE,HOTSEAT[INDEX_]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  INC(INDEX_,1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  IF (EOF(HOTSEAT_FILE)=TRUE) THEN BEGIN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILEMODE:=2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SEEK(HOTSEAT_FILE,FILESIZE(HOTSEAT_FILE));//JUMP THE END OF THE FILE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WRITE(HOTSEAT_FILE,ONE); //AND WRITE THE ENROLED GUY<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  END;<br />
&nbsp; &nbsp; &nbsp; &nbsp; END;<br />
&nbsp; &nbsp; end;<br />
&nbsp; end;<br />
//*****************************&nbsp; PROCEDURE GETOUTOFHERE&nbsp; ***********************<br />
Procedure GetOutOfHere;<br />
&nbsp; Begin<br />
&nbsp; &nbsp; WriteLn('0 pressed,exiting...');<br />
&nbsp; &nbsp; Sleep(1000);<br />
&nbsp; &nbsp; //clrscr;<br />
&nbsp; End;<br />
//*******************************&nbsp; PROCEDURE MENU&nbsp; *****************************<br />
&nbsp;Procedure Menu;<br />
Begin<br />
&nbsp; &nbsp; &nbsp; LOAD;<br />
&nbsp; &nbsp; &nbsp; Writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  M E N U');<br />
&nbsp; &nbsp; &nbsp; WriteLn('Please enter an integer in the range 1...5');<br />
&nbsp; &nbsp; &nbsp; WriteLn;<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 1 List all the contestants');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 2 Generate the 6 finalist''s numbers');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 3 Find and list the finalists');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 4 Change the address a friend details');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 5 Enrol a new contestant');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 0 Exit');<br />
<br />
&nbsp; &nbsp; &nbsp; Readln(User_Choice);<br />
&nbsp; &nbsp; &nbsp; Case (User_Choice) of<br />
&nbsp; &nbsp; &nbsp; &nbsp;  1:ContestantsList;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  2:Generate6finalists;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  3:ShowFinalists;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  4:ChangeDetails;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  5:EnrolContestant;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  0:GetOutOfHere;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
end;<br />
//***************************&nbsp; THE MAIN PROGRAM&nbsp; *******************************<br />
begin //main body<br />
//Load;<br />
repeat<br />
menu;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {Shows the Menu on the screen}<br />
until User_Choice = 0;&nbsp; {Allows program user to Exit program}<br />
CLOSE(HOTSEAT_FILE);//*<br />
end.</pre></div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=11911&amp;d=1254502270">hotSeat.zip</a> (571 Bytes)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227265.html</guid>
		</item>
		<item>
			<title>Containing numbers - how?</title>
			<link>http://www.daniweb.com/forums/thread227259.html</link>
			<pubDate>Fri, 02 Oct 2009 16:10:17 GMT</pubDate>
			<description>Hello guys and girls. 
 
Any idea how to find containing numbers of one specific number. For example number 10: 
 
10 = 9+1 
10 = 8+2 
10 = 7+3 
… 
…</description>
			<content:encoded><![CDATA[<div>Hello guys and girls.<br />
<br />
Any idea how to find containing numbers of one specific number. For example number 10:<br />
<br />
10 = 9+1<br />
10 = 8+2<br />
10 = 7+3<br />
…<br />
…<br />
<br />
I tried to do something like ‘random(10)’ but got nowhere with that.<br />
<br />
Cheers to all,<br />
marygreen</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>marygreen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227259.html</guid>
		</item>
		<item>
			<title>delphi  logon code</title>
			<link>http://www.daniweb.com/forums/thread227225.html</link>
			<pubDate>Fri, 02 Oct 2009 11:57:53 GMT</pubDate>
			<description><![CDATA[hi i need to write a logon code for delphi 7 that logs on to someone and then if they get the password wrong 3 time they get locked out. i am completely stuck i have a log on code written but i don't know where to go after that. the log on code is  
procedure TForm1.Button1Click(Sender: TObject);...]]></description>
			<content:encoded><![CDATA[<div>hi i need to write a logon code for delphi 7 that logs on to someone and then if they get the password wrong 3 time they get locked out. i am completely stuck i have a log on code written but i don't know where to go after that. the log on code is <br />
procedure TForm1.Button1Click(Sender: TObject);<br />
var<br />
count: integer;<br />
begin<br />
If edit1.Text='Jayno4' Then<br />
Begin<br />
Edit1.Readonly:=true;<br />
end<br />
else<br />
If MaskEdit1.Text='jaynesh' Then<br />
Begin<br />
form3.Visible:=True;<br />
end<br />
else<br />
Begin<br />
ShowMessage('Incorrect username and password');<br />
end;<br />
end;<br />
<br />
end</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Jayno4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227225.html</guid>
		</item>
		<item>
			<title>Round command in Delphi</title>
			<link>http://www.daniweb.com/forums/thread227124.html</link>
			<pubDate>Fri, 02 Oct 2009 00:07:15 GMT</pubDate>
			<description><![CDATA[I am struggling to work out how to use the Round command, I have bolded the area in which I need it. Thanks for the help in advance. 
 
Edit: Forgot to add, we have to round the number up. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am struggling to work out how to use the Round command, I have bolded the area in which I need it. Thanks for the help in advance.<br />
<br />
Edit: Forgot to add, we have to round the number up.<br />
<br />
 <pre style="margin:20px; line-height:13px">program lab12exc3;<br />
<br />
{$APPTYPE CONSOLE}<br />
<br />
uses<br />
&nbsp; SysUtils,ourcrt;<br />
var<br />
length,width,height,area,litresPaint,metresPaint : real;<br />
<br />
procedure input_measurements;<br />
begin<br />
write('What is the length of the room? ');<br />
readln(length);<br />
writeln('What is the width of the room? ');<br />
readln(width);<br />
writeln('What is the height of the room? ');<br />
readln(height);<br />
end;<br />
<br />
procedure convert_measurements;<br />
begin<br />
area:=(width*length)+(width*height*2)+(height*length*2);<br />
litresPaint:=area*2/20;<br />
metresPaint:=area*2;<br />
end;<br />
<br />
procedure display_measurements;<br />
begin<br />
writeln('The total surface area of the room is ',area:6:2,' metres squared.');<br />
writeln('You will need ',metresPaint:6:2,' metres squared of paint.');<br />
writeln('This equates to ',<span style="font-weight:bold">(litresPaint):6:2</span>,' litres of paint.');<br />
end;<br />
<br />
begin<br />
input_measurements;<br />
convert_measurements;<br />
display_measurements;<br />
readln;<br />
end.</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Kirky89</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227124.html</guid>
		</item>
		<item>
			<title>How to Ask Help for Answer??</title>
			<link>http://www.daniweb.com/forums/thread226971.html</link>
			<pubDate>Thu, 01 Oct 2009 09:11:02 GMT</pubDate>
			<description>Hello EveryBody..., 
 
My name is Michael. 
 
I come from Indonesia. 
 
If I have some problem which is IT things and I want to Ask for help to this Commmunity, What do I have to do? and How?? 
 
My Problem: How to Call Microsoft Visual C++ 6.0 Object File from Borland Delphi 7??</description>
			<content:encoded><![CDATA[<div>Hello EveryBody...,<br />
<br />
My name is Michael.<br />
<br />
I come from Indonesia.<br />
<br />
If I have some problem which is IT things and I want to Ask for help to this Commmunity, What do I have to do? and How??<br />
<br />
My Problem: How to Call Microsoft Visual C++ 6.0 Object File from Borland Delphi 7??<br />
<br />
My email SNIP</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>M1cH</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226971.html</guid>
		</item>
		<item>
			<title>RichEdit and Autoscroll</title>
			<link>http://www.daniweb.com/forums/thread226551.html</link>
			<pubDate>Tue, 29 Sep 2009 14:02:51 GMT</pubDate>
			<description><![CDATA[Hello everyone... 
 
I'm having a problem with RichEdit and its default scrolling behaviour.  
 
When a new line is added to a RichEdit (via a Timer OnTimer event), it autoscrolls to the bottom, which is fine. The problem is, while it scrolls to bottom, it also resets the horizontal scrollbar to...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone...<br />
<br />
I'm having a problem with RichEdit and its default scrolling behaviour. <br />
<br />
When a new line is added to a RichEdit (via a Timer OnTimer event), it autoscrolls to the bottom, which is fine. The problem is, while it scrolls to bottom, it also resets the horizontal scrollbar to the left, which is undesirable because I want to view the end of my messages.<br />
<br />
I've tried to detect SB_LEFT, SB_LINELEFT... messages but it seems RichEdit's control doesn't send these messages but instead just uses SetScrollBarInfo() or something like that to move the horizontal scroll bar whenever the user wants to scroll to the vertical scrollbar to bottom.<br />
<br />
Therefore I've tried to implement my own routine to catch SB_BOTTOM messages to avoid resetting the horizontal bar:<br />
<br />
<br />
if Message.ScrollCode = SB_BOTTOM<br />
begin<br />
  GetScrollInfo();..<br />
  yPos:= si.nPos;<br />
  si.nPos:= si.nMax;<br />
...<br />
  SetScrollInfo();..<br />
<br />
  ScrollWindowEX(handle, 0, yChar * (yPos - si.nPos),...);<br />
  UpdateWindow(handle);<br />
end;<br />
<br />
just like the example in MSDN. However, while the scrollbars look like they're working properly, the actual content isn't scrolled up.<br />
<br />
I'd like to know the reason for this and I don't think it's necessary to write my own WMPAINT function.<br />
<br />
I don't want to use EM_LINESCROLL, SB_LINEDOWN messages either since they will give the same behaviour (i.e. resetting the horizontal scrollbar).<br />
<br />
Does anyone know how I can fix my SB_BOTTOM routine so that the actual text is scrolled?? Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>lapassion</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226551.html</guid>
		</item>
		<item>
			<title>Need Help...</title>
			<link>http://www.daniweb.com/forums/thread226516.html</link>
			<pubDate>Tue, 29 Sep 2009 10:06:16 GMT</pubDate>
			<description><![CDATA[How to call C Object (Microsoft Visual C++ 6.0) from Delphi (Borland Delphi 7)?? 
 
email me: <EMAIL SNIPPED>]]></description>
			<content:encoded><![CDATA[<div>How to call C Object (Microsoft Visual C++ 6.0) from Delphi (Borland Delphi 7)??<br />
<br />
email me: &lt;EMAIL SNIPPED&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>M1cH</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226516.html</guid>
		</item>
		<item>
			<title>TCP server with md5 Authentication + 3des crypt</title>
			<link>http://www.daniweb.com/forums/thread226160.html</link>
			<pubDate>Sun, 27 Sep 2009 18:51:00 GMT</pubDate>
			<description>hi i use OverbyteIcsWSocket + DCPcrypt2 
 
i have try to make TCP server with md5 Authentication + 3des crypt 
example: 
user name = somtimg 
pasword = pass 
 
and 
des key = 1020304050607080901011121314</description>
			<content:encoded><![CDATA[<div>hi i use OverbyteIcsWSocket + DCPcrypt2<br />
<br />
i have try to make TCP server with md5 Authentication + 3des crypt<br />
example:<br />
user name = somtimg<br />
pasword = pass<br />
<br />
and<br />
des key = 1020304050607080901011121314<br />
<br />
i have got this mesage from client ( Server random key length is 19 and must be 14)<br />
 <pre style="margin:20px; line-height:13px">hire is (normal tcp server)<br />
var<br />
MyHostName : AnsiString;<br />
begin<br />
WSocket_gethostname(MyHostName);<br />
Display(' I am &quot;' + String(MyHostName) + '&quot;');<br />
Display(' IP: ' + LocalIPList.Text);<br />
WSocketServer1.SocksUsercode := 'user';<br />
WSocketServer1.SocksPassword := 'pass';<br />
WSocketServer1.Proto := 'tcp'; { Use TCP protocol }<br />
WSocketServer1.Port := '400'; { Use telnet port }<br />
WSocketServer1.Addr := '0.0.0.0'; { Use any interface }<br />
WSocketServer1.ClientClass := TTcpSrvClient; { Use our component }<br />
WSocketServer1.Listen; { Start litening }<br />
Display('Waiting for clients...');<br />
<br />
hire is string 3des crypt<br />
procedure TForm1.Button1Click(Sender: TObject);<br />
var<br />
i: integer;<br />
Cipher: TDCP_3des;<br />
KeyStr: string;<br />
begin<br />
KeyStr:= '';<br />
if InputQuery('Passphrase','Enter passphrase',KeyStr) then // get the passphrase<br />
begin<br />
Cipher:= TDCP_3des.Create(Self);<br />
Cipher.InitStr(KeyStr,TDCP_sha1); // initialize the cipher with a hash of the passphrase<br />
for i:= 0 to Memo1.Lines.Count-1 do // encrypt the contents of the memo<br />
Memo1.Lines[i]:= Cipher.EncryptString(Memo1.Lines[i]);<br />
Cipher.Burn;<br />
Cipher.Free;<br />
end;<br />
<br />
Decrypt<br />
procedure TForm1.Button2Click(Sender: TObject);<br />
var<br />
i: integer;<br />
Cipher: TDCP_3des;<br />
KeyStr: string;<br />
begin<br />
KeyStr:= '';<br />
if InputQuery('Passphrase','Enter passphrase',KeyStr) then // get the passphrase<br />
begin<br />
Cipher:= TDCP_3des.Create(Self);<br />
Cipher.InitStr(KeyStr,TDCP_sha1); // initialize the cipher with a hash of the passphrase<br />
for i:= 0 to Memo1.Lines.Count-1 do // decrypt the contents of the memo<br />
Memo1.Lines[i]:= Cipher.DecryptString(Memo1.Lines[i]);<br />
Cipher.Burn;<br />
Cipher.Free;<br />
end;</pre>this work on (3des string crypt )<br />
<br />
but i need tcp server crypt/decrypt Big plise small example.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>especta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226160.html</guid>
		</item>
		<item>
			<title>Delphi re-indexes arrays passed to functions?</title>
			<link>http://www.daniweb.com/forums/thread226154.html</link>
			<pubDate>Sun, 27 Sep 2009 17:59:28 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I don't use Delphi often so this is probably a stupid question again, but why does Delphi (7) re-index arrays when they're passed to a function, as a simplified example... 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I don't use Delphi often so this is probably a stupid question again, but why does Delphi (7) re-index arrays when they're passed to a function, as a simplified example...<br />
<br />
 <pre style="margin:20px; line-height:13px">program example;<br />
{$APPTYPE CONSOLE}<br />
uses<br />
&nbsp; SysUtils;<br />
var<br />
&nbsp; numbers: array[1..5] of Integer = (10, 20, 30, 40, 50);<br />
<br />
procedure example(var nums: array of Integer);<br />
begin<br />
&nbsp; WriteLn(nums[5]); //Undefined. 50 -&gt; nums[4]<br />
end;<br />
<br />
begin<br />
&nbsp; Writeln(numbers[5]);<br />
&nbsp; example(numbers);<br />
&nbsp; Readln;<br />
end.</pre><br />
Why does it do this? Thanks in advance for any answers.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>TomRandall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226154.html</guid>
		</item>
		<item>
			<title>Help with a bunch of TImages</title>
			<link>http://www.daniweb.com/forums/thread225018.html</link>
			<pubDate>Wed, 23 Sep 2009 05:17:34 GMT</pubDate>
			<description><![CDATA[Hey all. Ill put this simply. 
 
{assigning 52 jpeg's to 52 different TImages} 
 
_What i have:_ 
 
for x:= 1 to 52 do  
case x of 
1: img1.picture.loadfromfile(1.jpg); 
2: img2.picture.loadfromfile(2.jpg);]]></description>
			<content:encoded><![CDATA[<div>Hey all. Ill put this simply.<br />
<br />
{assigning 52 jpeg's to 52 different TImages}<br />
<br />
<span style="text-decoration:underline">What i have:</span><br />
<br />
for x:= 1 to 52 do <br />
case x of<br />
1: img1.picture.loadfromfile(1.jpg);<br />
2: img2.picture.loadfromfile(2.jpg);<br />
3: img3.picture.loadfromfile(3.jpg);<br />
4: img4.picture.loadfromfile(4.jpg);<br />
<br />
i think you get the picture.<br />
<br />
<span style="text-decoration:underline">What i want:</span><br />
<br />
some way of programmatically selecting a certain image using a variable. This could mean filling a string variable with 'img1.picture.loadfromfile(1.jpg)' and then using code to run that, or it could mean something like this..<br />
<br />
for x:= 1 to 52 do<br />
img(x).picture.loadfromfile(IntToStr(x)+'.jpg');</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>shado.028</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225018.html</guid>
		</item>
		<item>
			<title>How can I write a program that writes to a text file?</title>
			<link>http://www.daniweb.com/forums/thread224618.html</link>
			<pubDate>Mon, 21 Sep 2009 15:27:18 GMT</pubDate>
			<description><![CDATA[Dear ALL, 
 
Could you tell me how can I write a program that writes to a text file, the 32 people that are in our hotSeat.txt file. 
 
Cheers, 
 
turbomen 
 
(p.s.: 'the question orginally ask me to write a program that writes to a text file, the 32 people that are in our hotSeat.dat file' but it...]]></description>
			<content:encoded><![CDATA[<div>Dear ALL,<br />
<br />
Could you tell me how can I write a program that writes to a text file, the 32 people that are in our hotSeat.txt file.<br />
<br />
Cheers,<br />
<br />
turbomen<br />
<br />
(p.s.: 'the question orginally ask me to write a program that writes to a text file, the 32 people that are in our hotSeat.dat file' but it is not possible for me to upload the *.dat file to here.  So, I have make changes of the *.dat file to *.txt file before upload it.)</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=11713&amp;d=1253546817">hotSeat.txt</a> (1.6 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224618.html</guid>
		</item>
		<item>
			<title>How can I list the sorted results on the screen?</title>
			<link>http://www.daniweb.com/forums/thread224615.html</link>
			<pubDate>Mon, 21 Sep 2009 15:14:32 GMT</pubDate>
			<description>Dear All, 
 
Could you tell me how can I read from the hotseat.txt file all the records and sort by first name.  Finally, list the sorted results on the screen. 
 
Cheers, 
 
turbomen</description>
			<content:encoded><![CDATA[<div>Dear All,<br />
<br />
Could you tell me how can I read from the hotseat.txt file all the records and sort by first name.  Finally, list the sorted results on the screen.<br />
<br />
Cheers,<br />
<br />
turbomen</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=11712&amp;d=1253545954">hotSeat.txt</a> (1.6 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224615.html</guid>
		</item>
		<item>
			<title>Delphi programs not responding when run outside of IDE</title>
			<link>http://www.daniweb.com/forums/thread224388.html</link>
			<pubDate>Sun, 20 Sep 2009 14:06:16 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm encountering a frustrating problem in Delphi. 
 
I've written several very long programs to demonstrate certain things related to neural networks.  As such, the program GUI has many things on it that are updated per iteration of the solver: from labels, to memos, to editstrings, etc.  
...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm encountering a frustrating problem in Delphi.<br />
<br />
I've written several very long programs to demonstrate certain things related to neural networks.  As such, the program GUI has many things on it that are updated per iteration of the solver: from labels, to memos, to editstrings, etc. <br />
<br />
The two main buttons are &quot;Perform one iteration&quot; of the solution process, and &quot;Iterate&quot; which loops the single iteration code based on a spinedit field value.<br />
<br />
Everything works perfectly when programming/debugging.  The dynamic visual of the screen updates is just what I need for my demonstration.<br />
<br />
When the compiled program is run stand-alone, though, the single iteration works fine, and I can click, click, click it.  But if I use the looped mode, running 100 iterations, say, so I can stand back and watch the updates, the program goes off to never-never land.  The title bar does not say &quot;(Not Responding)&quot;, but that's what it feels like.  When enough time passes so that the iterations are completed, the screen updates to its final state and the program is okay again.  But I want to see the evolution (the two or three Repaints inside each run of the iteration loop).<br />
<br />
I don't understand what causes this behavior.  I see the same behavior in other recent programs that involve iteration.  Is there something I should be doing inside my iteration loop to avoid this behavior?  <br />
<br />
Stuck,<br />
<br />
Joe</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>SamoaJoe01</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224388.html</guid>
		</item>
		<item>
			<title>TRichEdit, alignment and reading order</title>
			<link>http://www.daniweb.com/forums/thread224141.html</link>
			<pubDate>Sat, 19 Sep 2009 04:42:45 GMT</pubDate>
			<description><![CDATA[I have installed Urdu (An Asian right-to-left language) on my computer (OS Windows XP) by  
>Control Panel>Regional and Language Options>Languages>Details>Add. 
I can change language from language bar on my task bar. 
 
In RichEdit I just want to change the reading order to right-to-left and...]]></description>
			<content:encoded><![CDATA[<div>I have installed Urdu (An Asian right-to-left language) on my computer (OS Windows XP) by <br />
&gt;Control Panel&gt;Regional and Language Options&gt;Languages&gt;Details&gt;Add.<br />
I can change language from language bar on my task bar.<br />
<br />
In RichEdit I just want to change the reading order to right-to-left and alignment to right.<br />
But the language automatically changes to Urdu. <br />
I just want to change the reading order to right-to-left and alignment to right.<br />
How can I change (reading order and alignment) in RichEdit without loading Urdu?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>safder00</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224141.html</guid>
		</item>
		<item>
			<title>question on TFileStream (Inno Setup)</title>
			<link>http://www.daniweb.com/forums/thread224007.html</link>
			<pubDate>Fri, 18 Sep 2009 12:14:47 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I'm using Inno Setup for the first time and just a beginner in Pascal. 
 
My code: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I'm using Inno Setup for the first time and just a beginner in Pascal.<br />
<br />
My code:<br />
<br />
 <pre style="margin:20px; line-height:13px">XMLHTTP := CreateOleObject('MSXML2.ServerXMLHTTP');<br />
XMLHTTP.Open('GET', myUrl, False);<br />
XMLHTTP.Send();<br />
...<br />
MyFileStream := TFileStream.Create(Path + MyFilename, fmCreate or fmOpenWrite);</pre><br />
But,I don't know how to use MyFileStream to write XMLHTTP.ResponseBody or XMLHTTP.ResponseStream.<br />
<br />
Could you please help me?<br />
<br />
Thanks,<br />
Maggie</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>mainguy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224007.html</guid>
		</item>
		<item>
			<title>How to spead a loop?</title>
			<link>http://www.daniweb.com/forums/thread223655.html</link>
			<pubDate>Thu, 17 Sep 2009 03:48:40 GMT</pubDate>
			<description><![CDATA[Hello to guys/girls on the forum. Question I have is following. How to speed this loop? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code...]]></description>
			<content:encoded><![CDATA[<div>Hello to guys/girls on the forum. Question I have is following. How to speed this loop?<br />
<br />
 <pre style="margin:20px; line-height:13px">begin<br />
var<br />
i:integer;<br />
begin<br />
for i:=1 to 9999999 do<br />
begin<br />
//do something<br />
Memo1.Lines.Add ((floattostr(a1.value))+' + '+(floattostr(a2.value))+' + '+(floattostr(a3.value));<br />
//do something<br />
Memo1.Lines.Add ((floattostr(a1.value))+' + '+(floattostr(a2.value))+' + '+(floattostr(a3.value));<br />
//do something<br />
Memo1.Lines.Add ((floattostr(a1.value))+' + '+(floattostr(a2.value))+' + '+(floattostr(a3.value));<br />
Application.ProcessMessages;<br />
if GetKeyState(VK_Escape) AND 128 = 128 then break;<br />
end;<br />
end;</pre><br />
The loop is very slow. To generate 2,000,000 lines it needs 2:45 hours. As it continues, it gets slower and slower still.<br />
<br />
Any help to this problem of mine is greatly appreciated. <br />
<br />
Regards,<br />
marygreen</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>marygreen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223655.html</guid>
		</item>
		<item>
			<title>How to improve my programm in Pascal?</title>
			<link>http://www.daniweb.com/forums/thread223525.html</link>
			<pubDate>Wed, 16 Sep 2009 15:24:36 GMT</pubDate>
			<description><![CDATA[This is my programm which is to search in the data file. 
I cannot search the data with key words/character but only the full words. 
How can I correct my programm to become searching in key words/character? 
 
The DATA: 
20081231  Betty 03/09/1978 
 
The programm 
begin 
      write('Member ID >...]]></description>
			<content:encoded><![CDATA[<div>This is my programm which is to search in the data file.<br />
I cannot search the data with key words/character but only the full words.<br />
How can I correct my programm to become searching in key words/character?<br />
<br />
The DATA:<br />
20081231  Betty 03/09/1978<br />
<br />
The programm<br />
begin<br />
      write('Member ID &gt; ');<br />
      readln(tid);<br />
      searching:=false;<br />
      assign(infile,infilename);<br />
      reset(infile);<br />
      while not eof(infile) do begin<br />
      readln(infile,id,na,bdy,bdm,bdd);<br />
      if id=tid then begin<br />
      writeln('Name:',na);<br />
      writeln('Date of birth: ',bdy,'-',bdm,'-',bdd);<br />
      searching:=true;<br />
      end;<br />
      end;<br />
      if searching=false then<br />
      writeln(tid,'  cannot be found.');<br />
      close(infile)<br />
      end;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>yozuca</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223525.html</guid>
		</item>
		<item>
			<title>Aero Shake not working on Delphi application</title>
			<link>http://www.daniweb.com/forums/thread223317.html</link>
			<pubDate>Tue, 15 Sep 2009 23:13:51 GMT</pubDate>
			<description><![CDATA[Windows 7's new Aero Shake feature isn't working on my Delphi SDI application. Does anyone have any idea why? And what needs to be changed to make it work? 
 
Thankyou...]]></description>
			<content:encoded><![CDATA[<div>Windows 7's new Aero Shake feature isn't working on my Delphi SDI application. Does anyone have any idea why? And what needs to be changed to make it work?<br />
<br />
Thankyou...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>haminoon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223317.html</guid>
		</item>
		<item>
			<title>How to smaller my attach image to Database?</title>
			<link>http://www.daniweb.com/forums/thread222472.html</link>
			<pubDate>Sat, 12 Sep 2009 10:07:25 GMT</pubDate>
			<description><![CDATA[- I've used DevExpress Components to develop my App. There's problem when user attach their image to database: it's so big. Of course, it influences my database speed. 
 
- Please instruct me some solution to solve them?]]></description>
			<content:encoded><![CDATA[<div>- I've used DevExpress Components to develop my App. There's problem when user attach their image to database: it's so big. Of course, it influences my database speed.<br />
<br />
- Please instruct me some solution to solve them?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>daviscooper</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222472.html</guid>
		</item>
		<item>
			<title>Delphi DLL</title>
			<link>http://www.daniweb.com/forums/thread221207.html</link>
			<pubDate>Mon, 07 Sep 2009 17:28:02 GMT</pubDate>
			<description>HI to ALL Bro ,  
 
Urgently need some advice from bro and sis here.  
I am totally fresh in delphi. 
I have an existing dll which wrote and done by ex-coll .  
All the function is working well with my vb6 or .net program since last few year. Recenlt i have to add few more new feature in this dll...</description>
			<content:encoded><![CDATA[<div>HI to ALL Bro , <br />
<br />
Urgently need some advice from bro and sis here. <br />
I am totally fresh in delphi.<br />
I have an existing dll which wrote and done by ex-coll . <br />
All the function is working well with my vb6 or .net program since last few year. Recenlt i have to add few more new feature in this dll and i am fresh on this. Pls help . ...<br />
<br />
The dll program is write with delphi 7 , i do a simple testing which modified or change one of the function name inside the source code.<br />
Eg : Function MsgboxError <br />
I try rename it to MsgboxError2 and recompile it. The program compiled without error, the problem is when i try to use the dll export tool to extract out all the function. The function name still look like old function name &lt;MsgboxError&gt;, it should be &lt;MsgboxError2&gt;.<br />
<br />
I already change all the related file which contain this function name. I really got no idea how it work ! Pls helpppppp<br />
<br />
TQ</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>johnng815</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221207.html</guid>
		</item>
		<item>
			<title>Download FPC</title>
			<link>http://www.daniweb.com/forums/thread220889.html</link>
			<pubDate>Sat, 05 Sep 2009 16:19:52 GMT</pubDate>
			<description><![CDATA[Hello, 
 I'm trying to download the binarys of the *FPC ver. 2.1.2 Win32*, because i need to develop a program that i only can compile it in this version of FPC, then if you have the binary of this version of a link to it i will be very happy. 
 
Thanks, 
 Nathan Paulino Campos]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
 I'm trying to download the binarys of the <span style="font-weight:bold">FPC ver. 2.1.2 Win32</span>, because i need to develop a program that i only can compile it in this version of FPC, then if you have the binary of this version of a link to it i will be very happy.<br />
<br />
Thanks,<br />
 Nathan Paulino Campos</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Nathan Campos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread220889.html</guid>
		</item>
		<item>
			<title>find replace</title>
			<link>http://www.daniweb.com/forums/thread216052.html</link>
			<pubDate>Thu, 03 Sep 2009 18:16:14 GMT</pubDate>
			<description>find replace 
hi i have 2 txt files in 1 i have stored numbers 
 
numbers.txt 
ex. 
10  
 20  
 30  
 
others i have stored</description>
			<content:encoded><![CDATA[<div>find replace<br />
hi i have 2 txt files in 1 i have stored numbers<br />
<br />
numbers.txt<br />
ex.<br />
10 <br />
 20 <br />
 30 <br />
<br />
others i have stored <br />
word.txt<br />
<br />
10,hello<br />
20,welcme<br />
30,text ......<br />
<br />
i need  to auto replace numbers with words ..<br />
plise help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>especta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread216052.html</guid>
		</item>
		<item>
			<title>Could you please give me some of the idea of making the hotSeat game in pascal?</title>
			<link>http://www.daniweb.com/forums/thread215903.html</link>
			<pubDate>Thu, 03 Sep 2009 05:19:53 GMT</pubDate>
			<description><![CDATA[Dear Sir, 
 
Could you please give me some of the ideas of making the hotSeat game in pascal? 
 
The following is the simple mode of my coding:- 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Dear Sir,<br />
<br />
Could you please give me some of the ideas of making the hotSeat game in pascal?<br />
<br />
The following is the simple mode of my coding:-<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
Program yeungkt1;<br />
<br />
{$APPTYPE CONSOLE}<br />
<br />
{<br />
&nbsp; &nbsp; Who wants to be a millionaire.<br />
&nbsp; &nbsp; Author:&nbsp; Chris Yeung<br />
&nbsp; &nbsp; Version 1<br />
}<br />
<br />
uses<br />
&nbsp; SysUtils,<br />
&nbsp; OurCrt;<br />
<br />
Type<br />
&nbsp;  hotSeat_record=record<br />
&nbsp;  lastname:string[12];<br />
&nbsp;  firstname:string[12];<br />
&nbsp;  phone: string[12];<br />
End;<br />
<br />
Var User_Choice:Integer;<br />
&nbsp; hotSeat_file:file of hotSeat_record;<br />
&nbsp; hotSeat:array[1..100]of hotSeat_record;<br />
&nbsp; numberRecords:integer;<br />
&nbsp; numbers: array[1..10] of integer;<br />
&nbsp; generate: boolean;<br />
<br />
<br />
Procedure load;<br />
Var<br />
&nbsp;  count:integer;<br />
begin<br />
&nbsp; &nbsp; assign(hotSeat_file,'hotSeat.dat');<br />
&nbsp; &nbsp; reset(hotSeat_file);<br />
&nbsp; &nbsp; numberRecords:= filesize(hotSeat_file);<br />
&nbsp; for count:=&nbsp; 1 to numberRecords do<br />
&nbsp; Begin<br />
&nbsp; &nbsp; read(hotSeat_file,hotSeat[count]);<br />
&nbsp; end;<br />
end;<br />
<br />
Procedure ContestantsList;<br />
<br />
Var<br />
&nbsp;  count:integer;<br />
<br />
Begin<br />
&nbsp; numberRecords:= filesize(hotSeat_file);<br />
<br />
&nbsp; WriteLn;<br />
<br />
&nbsp; for count:=&nbsp; 1 to (filesize(hotSeat_file)) do<br />
&nbsp; Begin<br />
&nbsp; WriteLn(hotSeat[count].firstname:12,hotSeat[count].lastname:12,<br />
&nbsp; hotSeat[count].phone:20);<br />
&nbsp; sleep(100);<br />
&nbsp; End;<br />
&nbsp; readln;<br />
end;<br />
<br />
Procedure Generate10finalists;<br />
var<br />
&nbsp; count,temp:integer;<br />
<br />
begin<br />
&nbsp; writeln('Here are the 10 finalist''s numbers');<br />
&nbsp; randomize;<br />
&nbsp; for count:= 1 to 10 do<br />
&nbsp; begin<br />
&nbsp; &nbsp; temp:=random(numberRecords)+1;<br />
&nbsp; &nbsp; while(temp=numbers[1])<br />
&nbsp; &nbsp; or (temp=numbers[2])<br />
&nbsp; &nbsp; or (temp=numbers[3])<br />
&nbsp; &nbsp; or (temp=numbers[4])<br />
&nbsp; &nbsp; or (temp=numbers[5])<br />
&nbsp; &nbsp; or (temp=numbers[6])<br />
&nbsp; &nbsp; or (temp=numbers[7])<br />
&nbsp; &nbsp; or (temp=numbers [8])<br />
&nbsp; &nbsp; or (temp=numbers [9])<br />
&nbsp; &nbsp; or (temp=numbers [10]) do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; temp:=random(numberRecords)+1;<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; numbers[count]:=temp;<br />
&nbsp; &nbsp; generate := true;<br />
&nbsp; end;<br />
<br />
&nbsp; for count := 1 to 10 do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; writeln('&nbsp; &nbsp;  ***&lt;$$$$$&gt;****&nbsp; ' ,(numbers[count]), '&nbsp; ****&lt;$$$$&gt;****');<br />
&nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; sleep(100);<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GOOD LUCK !!!!!!!');<br />
&nbsp; &nbsp; readln;<br />
&nbsp; &nbsp; clrscr;<br />
end;<br />
<br />
<br />
<br />
<br />
<br />
Procedure ShowFinalists;<br />
&nbsp; var<br />
&nbsp; count: integer;<br />
&nbsp; Begin<br />
&nbsp; if (generate = true)&nbsp; then<br />
&nbsp; begin<br />
&nbsp; &nbsp; WriteLn('3 pressed,finding and listing the finalists...');<br />
&nbsp; &nbsp; WriteLn;<br />
&nbsp; &nbsp; for count:=1 to 10 do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; writeln(hotSeat[numbers[count]].firstname:12,<br />
&nbsp; &nbsp; &nbsp; hotSeat[numbers[count]].lastname:12, hotSeat[numbers[count]].phone:20);<br />
&nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; sleep(200);<br />
&nbsp; &nbsp; end<br />
&nbsp; end<br />
&nbsp; else<br />
&nbsp; &nbsp; &nbsp; writeln('Please generate finalist number first!');<br />
&nbsp; &nbsp; readln;<br />
&nbsp; End;<br />
<br />
Procedure save;<br />
&nbsp; var<br />
&nbsp; count: integer;<br />
&nbsp; Begin<br />
&nbsp; &nbsp; reset(hotSeat_file);<br />
&nbsp; &nbsp; for count:=1 to filesize(hotSeat_file) do<br />
&nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp;  write(hotSeat_file,hotSeat[count]);<br />
&nbsp; &nbsp; &nbsp; end;<br />
&nbsp; end;<br />
<br />
<br />
Procedure ChangeDetails;<br />
&nbsp; var<br />
&nbsp; count: integer;<br />
&nbsp; firstname,lastname,newphone: string[12];<br />
&nbsp; name: boolean;<br />
<br />
<br />
&nbsp; Begin<br />
&nbsp; &nbsp; name:=false;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; WriteLn('4 pressed,changing the phone a friend details...');<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; WriteLn('Please enter your first name.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(firstname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; WriteLn('Please enter your last name.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(lastname);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for count:=1 to filesize(hotSeat_file) do<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (hotSeat[count].lastname=lastname) and<br />
&nbsp; &nbsp; &nbsp; &nbsp;  (hotSeat[count].firstname=firstname) then<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Well. We''ve found your records.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Please enter your new phone number &lt; 03 ###-####&gt;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln(newphone);<br />
&nbsp; &nbsp; &nbsp; &nbsp; hotSeat[count].phone:=newphone;<br />
&nbsp; &nbsp; &nbsp; &nbsp; name:=true<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if name=false then<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('Sorry!&nbsp; We do not have your records from your database.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln;<br />
&nbsp; &nbsp; &nbsp; &nbsp; write('Press &lt;ENTER&gt; to save changes and return to the main menu.');<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; save;<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
<br />
Procedure EnrolContestant;<br />
&nbsp; var&nbsp;  lastname:string[12];<br />
&nbsp; &nbsp; &nbsp; &nbsp; firstname :string[12];<br />
&nbsp; &nbsp; &nbsp; &nbsp; phone:string[12];<br />
&nbsp; &nbsp; &nbsp; &nbsp; count :integer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; name :boolean;<br />
<br />
&nbsp; Begin<br />
&nbsp; &nbsp; name:=false;<br />
&nbsp; &nbsp; writeln('Please enter your first name - if you''re new.');<br />
&nbsp; &nbsp; readln(firstname);<br />
&nbsp; &nbsp; writeln('Please enter your last name.');<br />
&nbsp; &nbsp; readln(lastname);<br />
&nbsp; &nbsp; writeln('Lastly, please enter your phone number.');<br />
&nbsp; &nbsp; readln(phone);<br />
&nbsp; &nbsp; writeln('Please press &lt;ENTER&gt;');<br />
&nbsp; &nbsp; for count:=1 to filesize(hotSeat_file) do<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; if (hotSeat[count].lastname=lastname) and<br />
&nbsp; &nbsp; (hotSeat[count].firstname=firstname) then<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; name:=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln('You''re a contestant already.');<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; end;<br />
&nbsp; &nbsp; if (name = false) then<br />
&nbsp; &nbsp; begin<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; numberRecords:= numberRecords+ 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hotSeat[filesize(hotSeat_file)].firstname:=firstname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hotSeat[filesize(hotSeat_file)].lastname:=lastname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hotSeat[filesize(hotSeat_file)].phone:=phone;<br />
<br />
<br />
&nbsp; writeln('Please press &lt;ENTER&gt; to save your details and return to main menu.');<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln;<br />
&nbsp; &nbsp; &nbsp; &nbsp; save;<br />
<br />
&nbsp; &nbsp; end;<br />
&nbsp; end;<br />
<br />
<br />
<br />
<br />
<br />
Procedure GetOutOfHere;<br />
&nbsp; Begin<br />
&nbsp; &nbsp; WriteLn('0 pressed,exiting...');<br />
&nbsp; &nbsp; Sleep(5000);<br />
&nbsp; &nbsp; clrscr;<br />
&nbsp; End;<br />
&nbsp;Procedure Menu;<br />
Begin<br />
<br />
&nbsp; &nbsp; &nbsp; Writeln('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  M E N U');<br />
&nbsp; &nbsp; &nbsp; WriteLn('Please enter an integer in the range 1...5');<br />
&nbsp; &nbsp; &nbsp; WriteLn;<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 1 List all the contestants');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 2 Generate the 10 finalist''s numbers');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 3 Find and list the finalists');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 4 Change the phone a friend details');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 5 Enrol a new contestant');<br />
&nbsp; &nbsp; &nbsp; WriteLn('&nbsp; 0 Exit');<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; Readln(User_Choice);<br />
<br />
&nbsp; &nbsp; &nbsp; Case (User_Choice) of<br />
&nbsp; &nbsp; &nbsp; &nbsp;  1:ContestantsList;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  2:Generate10finalists;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  3:ShowFinalists;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  4:ChangeDetails;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  5:EnrolContestant;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  0:GetOutOfHere;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
end;<br />
<br />
<br />
<br />
<br />
<br />
begin //main body<br />
Load;<br />
repeat<br />
menu;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {Shows the Menu on the screen}<br />
until User_Choice = 0;&nbsp; {Allows program user to Exit program}<br />
end.</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215903.html</guid>
		</item>
		<item>
			<title>Floating Point Errors after setting the test system to European</title>
			<link>http://www.daniweb.com/forums/thread215740.html</link>
			<pubDate>Wed, 02 Sep 2009 13:02:45 GMT</pubDate>
			<description>Hi. 
 
I have wrote a basic program in delphi to perform calculations. 
 
The system the program was wrote on had the region set to English(United Kingdom). 
 
Upon testing the software, it will only perform calculations when the system is set in either English(United Kingdom) Or English(United...</description>
			<content:encoded><![CDATA[<div>Hi.<br />
<br />
I have wrote a basic program in delphi to perform calculations.<br />
<br />
The system the program was wrote on had the region set to English(United Kingdom).<br />
<br />
Upon testing the software, it will only perform calculations when the system is set in either English(United Kingdom) Or English(United States). If i set it to any other Eg Spanish(Spanish). Upon selecting an option i recieve .60 is not a valid Floating Point Value, and no calculations will be performed.<br />
<br />
It is very important for me that this software will work on both european and english setups, can somebody please point me in the right direction.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>revski</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215740.html</guid>
		</item>
		<item>
			<title>Two clients on one computer!</title>
			<link>http://www.daniweb.com/forums/thread215238.html</link>
			<pubDate>Mon, 31 Aug 2009 11:23:42 GMT</pubDate>
			<description>HI, 
 
Which changes I must to make in this program about (UDP Chat) which you may find on 
http://delphi.about.com/library/weekly/aa101105a.htm 
To work on one computer simulate 2 clients, concerning with start two times on this program 
On same Computer I want to have two clients!! Is it...</description>
			<content:encoded><![CDATA[<div>HI,<br />
<br />
Which changes I must to make in this program about (UDP Chat) which you may find on<br />
<a rel="nofollow" class="t" href="http://delphi.about.com/library/weekly/aa101105a.htm" target="_blank">http://delphi.about.com/library/weekly/aa101105a.htm</a><br />
To work on one computer simulate 2 clients, concerning with start two times on this program<br />
On same Computer I want to have two clients!! Is it possible?<br />
<br />
With Regard<br />
Janev<br />
mail: <a href="mailto:jblagoj@yahoo.com">jblagoj@yahoo.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>janevblagoj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215238.html</guid>
		</item>
		<item>
			<title>Activate procedure for two clients!</title>
			<link>http://www.daniweb.com/forums/thread215236.html</link>
			<pubDate>Mon, 31 Aug 2009 11:21:39 GMT</pubDate>
			<description>Dear Sir, 
 
I work in Delphi 6 a few years. 
Now I was beginning in Delphi network and I need some help maybe in source code 
Or advice for following: 
I have chat application and have two peer to peer clients, and I want to start one procedure 
(For example Form2.ShowModal) on first client, and I...</description>
			<content:encoded><![CDATA[<div>Dear Sir,<br />
<br />
I work in Delphi 6 a few years.<br />
Now I was beginning in Delphi network and I need some help maybe in source code<br />
Or advice for following:<br />
I have chat application and have two peer to peer clients, and I want to start one procedure<br />
(For example Form2.ShowModal) on first client, and I want on a second client automatically to start same procedure(Form2.ShowModal) . How to it I may achievement.<br />
Please help me?!!<br />
<br />
Thank You<br />
Blagoj <br />
e-mail: <a href="mailto:jblagoj@yahoo.com">jblagoj@yahoo.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>janevblagoj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread215236.html</guid>
		</item>
		<item>
			<title>Card game problem</title>
			<link>http://www.daniweb.com/forums/thread214808.html</link>
			<pubDate>Sat, 29 Aug 2009 07:14:18 GMT</pubDate>
			<description><![CDATA[Dear ALL, 
 
I have tried to demonstrate the card game problem by myself.  The card game is come together with 52 cards.  It has Spade, Heart, Club and Diamond - Spade > Heart > Club > Diamond.  It has the integers and chars 2,3,4,5,6,7,8,9,10,J,Q,K,A.  Could you tell me how can I code this program...]]></description>
			<content:encoded><![CDATA[<div>Dear ALL,<br />
<br />
I have tried to demonstrate the card game problem by myself.  The card game is come together with 52 cards.  It has Spade, Heart, Club and Diamond - Spade &gt; Heart &gt; Club &gt; Diamond.  It has the integers and chars 2,3,4,5,6,7,8,9,10,J,Q,K,A.  Could you tell me how can I code this program if we only play for 5 times.  We choose 1 card in every time randomly.<br />
<br />
Cheers,<br />
<br />
turbomen</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214808.html</guid>
		</item>
		<item>
			<title>Could you mind telling me what can I do for the following question?</title>
			<link>http://www.daniweb.com/forums/thread214374.html</link>
			<pubDate>Thu, 27 Aug 2009 10:46:16 GMT</pubDate>
			<description>Could you mind telling me what can I do for the following question? 
 
To write a skeleton program for the assignment.  It should have a menu system with at least 5 options. The menu keeps repeating after each procedure is called.  When one of the procedures is called just return a message to the...</description>
			<content:encoded><![CDATA[<div>Could you mind telling me what can I do for the following question?<br />
<br />
To write a skeleton program for the assignment.  It should have a menu system with at least 5 options. The menu keeps repeating after each procedure is called.  When one of the procedures is called just return a message to the screen saying what this procedure will do: ie “this is task 1”<br />
<br />
The menu options are:<br />
	1	Task 1<br />
	2	Task 2<br />
	3	Task 3<br />
	4 	Task 4<br />
0	Exit menu system<br />
<br />
<br />
(Hint: use a case statement) <br />
<br />
<br />
Cheers,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>turbomen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214374.html</guid>
		</item>
		<item>
			<title>Need drop-down TMemo or similar</title>
			<link>http://www.daniweb.com/forums/thread214266.html</link>
			<pubDate>Thu, 27 Aug 2009 02:52:54 GMT</pubDate>
			<description><![CDATA[I'm trying to find a low-cost or free Memo control that is normally closed like a combo-box or datetimepicker, and opens in a similar manner.  
 
I want to fit one more memo controls on a dialog, but I'm finding that presenting a standard TMemo of reasonable size just takes up too much room.]]></description>
			<content:encoded><![CDATA[<div>I'm trying to find a low-cost or free Memo control that is normally closed like a combo-box or datetimepicker, and opens in a similar manner. <br />
<br />
I want to fit one more memo controls on a dialog, but I'm finding that presenting a standard TMemo of reasonable size just takes up too much room.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Roger99</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214266.html</guid>
		</item>
		<item>
			<title>Possible problem with TIniFile</title>
			<link>http://www.daniweb.com/forums/thread214110.html</link>
			<pubDate>Wed, 26 Aug 2009 13:25:49 GMT</pubDate>
			<description>I have an old game written in delphi and the game keeps crashing, the game is an mmorpg so there are constantly people online. 
 
To the problem, when we first start the game up, everyone can get on fine and play. The game stores variables into text files for each character whenever called by a...</description>
			<content:encoded><![CDATA[<div>I have an old game written in delphi and the game keeps crashing, the game is an mmorpg so there are constantly people online.<br />
<br />
To the problem, when we first start the game up, everyone can get on fine and play. The game stores variables into text files for each character whenever called by a script using the WriteString/WriteInteger function from TIniFiles.<br />
<br />
Now the game will run no problem for around 8 hours, saving 1000's of variables. But after a while, it just dies, and constantly reports the 'Unable to write to file' error for the variables.<br />
<br />
Just wondering if anyone has had any pervious experience which releates to this problem.<br />
<br />
Many thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Torando</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread214110.html</guid>
		</item>
		<item>
			<title>help combobox</title>
			<link>http://www.daniweb.com/forums/thread213887.html</link>
			<pubDate>Tue, 25 Aug 2009 17:24:17 GMT</pubDate>
			<description><![CDATA[i have 1 combobox and i have  auto Assign stringlist from advstringgrid  its working ok . 
I need to activate filter sorting condition based on select  string from combobox. 
 
hire is buton comand it work fine  
 
 advstringgrid1.Cells[9, 0] := 'some word '; 
 CheckBox1Click(Sender); 
 
I need ,,...]]></description>
			<content:encoded><![CDATA[<div>i have 1 combobox and i have  auto Assign stringlist from advstringgrid  its working ok .<br />
I need to activate filter sorting condition based on select  string from combobox.<br />
<br />
hire is buton comand it work fine <br />
 <pre style="margin:20px; line-height:13px"> advstringgrid1.Cells&#91;9, 0&#93; := 'some word ';<br />
&nbsp;CheckBox1Click(Sender);<br />
<br />
I need ,, ('some word';)&quot; to be autocange replace with rules baset on click in combobox<br />
<br />
haw to Assign stringlist from combobox and send like advstringgrid1.Cells&#91;9, 0&#93; :=&nbsp; ('hire select&nbsp; string from combobox ';)<br />
CheckBox1Click(Sender);</pre>any sugestion plise small example  Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>especta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread213887.html</guid>
		</item>
		<item>
			<title>Readln display problem</title>
			<link>http://www.daniweb.com/forums/thread213427.html</link>
			<pubDate>Sun, 23 Aug 2009 17:35:18 GMT</pubDate>
			<description><![CDATA[Hey Dudes and Dudets, 
 
The program I'm writing requires a string of 200 char, the max for a string is 255, so everything works fine, if I readln the text more than 80 charecters (wich is eol) then it truncates and goes to next line, cool, but if I put in 100 char, and after a 100 I realize that I...]]></description>
			<content:encoded><![CDATA[<div>Hey Dudes and Dudets,<br />
<br />
The program I'm writing requires a string of 200 char, the max for a string is 255, so everything works fine, if I readln the text more than 80 charecters (wich is eol) then it truncates and goes to next line, cool, but if I put in 100 char, and after a 100 I realize that I made a mistake and want to delete to char example, 26(any under 80) then it deletes the inputted data but does not bounce back to top line, how could I correct this?<br />
<br />
Help pls!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>FearlessFourie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread213427.html</guid>
		</item>
	</channel>
</rss>
