<?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>Wed, 08 Oct 2008 03:07:59 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/forums/myimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Pascal and Delphi</title>
			<link>http://www.daniweb.com/forums</link>
		</image>
		<item>
			<title><![CDATA[Copy all record's contents to typed pointer?]]></title>
			<link>http://www.daniweb.com/forums/thread149784.html</link>
			<pubDate>Tue, 07 Oct 2008 16:29:56 GMT</pubDate>
			<description>Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here: 
program linked_list_queue;
type queue = ^myrecord;
    myrecord = record
        data: integer;
        otherdata: string;
        datadatadata: char;
        next: queue;
  ...</description>
			<content:encoded><![CDATA[<div>Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here: <br />
<pre style="margin:20px; line-height:13px">program linked_list_queue;<br />
type queue = ^myrecord;<br />
&nbsp; &nbsp; myrecord = record<br />
&nbsp; &nbsp; &nbsp; &nbsp; data: integer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; otherdata: string;<br />
&nbsp; &nbsp; &nbsp; &nbsp; datadatadata: char;<br />
&nbsp; &nbsp; &nbsp; &nbsp; next: queue;<br />
&nbsp; &nbsp; end;<br />
&nbsp;<br />
const head = nil;<br />
&nbsp; &nbsp; tail = nil;<br />
&nbsp;<br />
procedure add(argument: myrecord); {adds data to queue}<br />
var mypointer: queue;<br />
begin<br />
&nbsp; &nbsp; new(mypointer);<br />
&nbsp; &nbsp; {Question: How can I move data from argument to mypointer? Is it possible?}<br />
&nbsp; &nbsp; {...}<br />
end;</pre>
If yes, how can i do it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Zolookas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread149784.html</guid>
		</item>
		<item>
			<title>Pascal loop error</title>
			<link>http://www.daniweb.com/forums/thread149292.html</link>
			<pubDate>Sun, 05 Oct 2008 12:31:01 GMT</pubDate>
			<description><![CDATA[hello, I'm new to the language and so far as I can tell this should work but it isnt. Sorry its probably just a newb mistake but i've spent hours on this silly error (and used search). 

 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a...]]></description>
			<content:encoded><![CDATA[<div>hello, I'm new to the language and so far as I can tell this should work but it isnt. Sorry its probably just a newb mistake but i've spent hours on this silly error (and used search). <br />
<br />
<pre style="margin:20px; line-height:13px">var<br />
&nbsp; call_start, call_length : integer;<br />
&nbsp; discount, cost: real;<br />
&nbsp; answer: char;<br />
<br />
&nbsp;const<br />
&nbsp; normal_price = 40;<br />
&nbsp; VAT = 0.175;<br />
<br />
begin<br />
&nbsp; repeat&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //repeat 1<br />
&nbsp; &nbsp; writeln ('please input call start time in hours');<br />
&nbsp; &nbsp; readln (call_start);<br />
&nbsp; &nbsp; until (call_start &gt;= 0) or (call_start &lt;24);<br />
&nbsp; &nbsp; &nbsp; repeat&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //repeat 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln ('please input call length');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln (call_length);<br />
&nbsp; &nbsp; &nbsp; until call_length &gt; 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //repeat 2 end<br />
&nbsp; &nbsp; discount := 1;<br />
&nbsp; &nbsp; if (call_start &gt; 18) then discount := 0.5<br />
&nbsp; &nbsp; else if (call_start &gt; 13) then discount := 0.8;<br />
&nbsp; &nbsp; cost := call_length * normal_price * discount * VAT;<br />
&nbsp; &nbsp; if call_length &gt; 60 then cost := cost * 0.8;<br />
&nbsp; &nbsp; writeln ('the price for your call was', cost);<br />
&nbsp; &nbsp; &nbsp; repeat&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //repeat 3<br />
&nbsp; &nbsp; &nbsp; &nbsp; writeln ('do you wish to continue (Y/N)');<br />
&nbsp; &nbsp; &nbsp; &nbsp; readln (answer);<br />
&nbsp; &nbsp; &nbsp; until (answer = 'Y') or (answer = 'N');&nbsp;  //repeat 3 end<br />
&nbsp; &nbsp; {it wants the end here for some reason but that excludes loop}<br />
&nbsp; until (answer = 'N');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //repeat 1 end<br />
end.<br />
<br />
<br />
[Error] Project2.dpr(30): 'END' expected but 'UNTIL' found</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Lone | Wolf</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread149292.html</guid>
		</item>
		<item>
			<title>dev pascal question</title>
			<link>http://www.daniweb.com/forums/thread148971.html</link>
			<pubDate>Fri, 03 Oct 2008 18:26:47 GMT</pubDate>
			<description>can i use graphics in my programs with dev pascal?</description>
			<content:encoded><![CDATA[<div>can i use graphics in my programs with dev pascal?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>lytre</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148971.html</guid>
		</item>
		<item>
			<title>Damn Asterisk Wont go down X.x</title>
			<link>http://www.daniweb.com/forums/thread148811.html</link>
			<pubDate>Fri, 03 Oct 2008 02:13:48 GMT</pubDate>
			<description><![CDATA[Ok, this Program was supposed to make the _asterisk go down a line every 1 second_ and to be able to move right and left, It moves right and left but _it doesn't go down._ For Those wondering, yeah im trying to make an arkanoid or something like that... this is just a test not the game project.

...]]></description>
			<content:encoded><![CDATA[<div>Ok, this Program was supposed to make the <u>asterisk go down a line every 1 second</u> and to be able to move right and left, It moves right and left but <u>it doesn't go down.</u> For Those wondering, yeah im trying to make an arkanoid or something like that... this is just a test not the game project.<br />
<br />
<pre style="margin:20px; line-height:13px">{*** Escrito por Fernando Agustin Monti ***}<br />
{************ Padron 90449 ****************}<br />
Program Ironman;<br />
<br />
Uses crt;<br />
<br />
var<br />
&nbsp; iTime,iPosX,iPosY:integer;<br />
&nbsp; cKey:char;<br />
&nbsp; bGameOver:boolean;<br />
const<br />
&nbsp; Time_Key = 100;<br />
&nbsp; X_Screen = 79;<br />
&nbsp; Y_Screen = 24;<br />
&nbsp; A_r = #26;<br />
&nbsp; A_l = #27;<br />
<br />
Begin<br />
&nbsp; ClrScr;<br />
&nbsp; iPosX := x_Screen div 2;<br />
&nbsp; iPosY := 2;<br />
&nbsp; bGameOver := False;<br />
&nbsp; WHILE not bGameOver DO<br />
&nbsp; &nbsp; Begin<br />
&nbsp; &nbsp; &nbsp; Gotoxy (iPosX,iPosY); write('*');<br />
&nbsp; &nbsp; &nbsp; Delay (Time_Key);<br />
&nbsp; &nbsp; &nbsp; Gotoxy (iPosX,iPosY); write(' ');<br />
&nbsp; &nbsp; &nbsp; iTime := iTime + Time_Key;<br />
&nbsp; &nbsp; &nbsp; IF keypressed THEN<br />
&nbsp; &nbsp; &nbsp; &nbsp; Begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cKey := readkey;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF (cKey = A_r) AND (iPosX &lt;= X_Screen) THEN inc(iPosX)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ElSE IF (cKey = A_l) AND (iPosX &gt; 1) THEN dec(iPosX)<br />
&nbsp; &nbsp; &nbsp; &nbsp; END;<br />
&nbsp; &nbsp; &nbsp; IF (Time_Key &gt; 1000) THEN<br />
&nbsp; &nbsp; &nbsp; &nbsp; Begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inc(iPosY);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iTime := 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bGameOver := iPosY = Y_Screen;<br />
&nbsp; &nbsp; &nbsp; &nbsp; END;<br />
&nbsp; &nbsp; END;<br />
END.</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>codeforfun</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148811.html</guid>
		</item>
		<item>
			<title>Need help with Delphi code</title>
			<link>http://www.daniweb.com/forums/thread148688.html</link>
			<pubDate>Thu, 02 Oct 2008 12:02:49 GMT</pubDate>
			<description>Hello everyone, 
I need some assistance in finding an error in my Delphi code. (I am new to the Delphi programming). I am using a Delphi application to build an excel spreadsheet.
When a part_number is entered for the first time(assuming it exists in db) application always runs , the second time...</description>
			<content:encoded><![CDATA[<div>Hello everyone, <br />
I need some assistance in finding an error in my Delphi code. (I am new to the Delphi programming). I am using a Delphi application to build an excel spreadsheet.<br />
When a part_number is entered for the first time(assuming it exists in db) application always runs , the second time the spreadsheet comesback with no data. Like my code is skipped ( while QRY.eof = False do -line is skipped). PLease help, below is my code.<br />
/////////////////////////////////////////////////////////////////<br />
<pre style="margin:20px; line-height:13px">procedure TForm1.BuildButtonClick(Sender: TObject);<br />
var<br />
SheetName: String;<br />
x:&nbsp; &nbsp; &nbsp; Integer;<br />
y:&nbsp; &nbsp; &nbsp; Integer;<br />
Sheet:&nbsp; Variant;<br />
ColumnRange: Variant;<br />
fldcnt: Integer;<br />
begin<br />
///////////////////////////<br />
<br />
&nbsp; QryC.Close();<br />
&nbsp; QryC.SQL.Clear();<br />
&nbsp; QryC.SQL.Add('select item_no from ITEM_MASTER where item_no =trim(:v_item)');<br />
&nbsp; QryC.Parameters.ParamByName('v_item').Value := PartNumberEdit.Text;<br />
&nbsp; QryC.Open();<br />
<br />
&nbsp; if QryC.RecordCount &lt;&gt; 1 then<br />
&nbsp; &nbsp; &nbsp; &nbsp;  begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Couldn''t find part number ' + PartNumberEdit.Text + '.');<br />
&nbsp; &nbsp; &nbsp; &nbsp; PartNumberEdit.text :='';<br />
&nbsp; &nbsp; &nbsp; &nbsp; PartNumberEdit.SetFocus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; end<br />
&nbsp;  else if QryC.RecordCount = 1 then<br />
&nbsp;  begin<br />
// Execute the stored procedure to prep the query.<br />
&nbsp; &nbsp; &nbsp; &nbsp; Proc.ProcedureName := 'CostAnalyzerViewBuild_KANBAN';<br />
&nbsp; &nbsp; &nbsp; &nbsp; Proc.Parameters.CreateParameter('v_partnumber', ftString, pdInput, 24, 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; Proc.Parameters&#91;0&#93;.Value := PartNumberEdit.Text;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Proc.ExecProc();<br />
&nbsp; &nbsp; &nbsp; &nbsp; Proc.Parameters.Clear();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; QRY.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; QRY.Open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; gauge.Visible := True;<br />
&nbsp; &nbsp; &nbsp; &nbsp; gauge.Min := 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; gauge.Position := 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; gauge.Max := QRY.RecordCount;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //if VarIsEmpty(XLApp) then<br />
&nbsp; &nbsp; &nbsp; &nbsp; XLApp:= CreateOleObject('Excel.Application');<br />
&nbsp; &nbsp; &nbsp; &nbsp; //XLApp.Visible := True;<br />
&nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks.Add(xlWBatWorkSheet);<br />
&nbsp; &nbsp; &nbsp; &nbsp; SheetName := 'BOM Summary ' + IntToStr(SheetNumber);<br />
&nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.WorkSheets&#91;1&#93;.Name := SheetName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Sheet := XLApp.Workbooks&#91;1&#93;.WorkSheets&#91;SheetName&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ColumnRange := XLApp.Workbooks&#91;1&#93;.WorkSheets&#91;SheetName&#93;.Columns;<br />
&nbsp; &nbsp; &nbsp; &nbsp; fldcnt := QRY.FieldDefs.Count; // the number of columns in the result set<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for y := 0 to fldcnt - 1 do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  begin<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'A1', 'A1'&#93;.EntireColumn.NumberFormat := '#,###,###,##0.0#_);&#91;Red&#93;(#,###,###,##0.0#_)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'B1', 'B1'&#93;.EntireColumn.NumberFormat := '#,##0_);&#91;Red&#93;(#,##0_)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'C1', 'C1'&#93;.EntireColumn.NumberFormat := '#,##0_);&#91;Red&#93;(#,##0_)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'D1', 'D1'&#93;.EntireColumn.NumberFormat := '#,##0_);&#91;Red&#93;(#,##0_)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'E1', 'E1'&#93;.EntireColumn.NumberFormat := '#,##0_);&#91;Red&#93;(#,##0_)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'F1', 'F1'&#93;.EntireColumn.NumberFormat := '#,##0_);&#91;Red&#93;(#,##0_)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Worksheets&#91;1&#93;.Range&#91;'G1', 'G1'&#93;.EntireColumn.NumberFormat := '#,###_);&#91;Red&#93;(#,###)';<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColumnRange.Columns&#91;y+1&#93;.AutoFit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sheet.Cells&#91;1, y+1&#93; := QRY.FieldDefs.Items&#91;y&#93;.Name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  end;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; x := 2;<br />
&nbsp; &nbsp; &nbsp;  while QRY.eof = False do<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for y := 0 to fldcnt - 1 do<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sheet.Cells&#91;x, y+1&#93; := QRY.Fields.Fields&#91;y&#93;.AsString;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x := x + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // NEW SHEET?<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if x &gt;= 65530 then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for y := 0 to fldcnt - 1 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; &nbsp; &nbsp; &nbsp; &nbsp; ColumnRange.Columns&#91;y+1&#93;.AutoFit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x := 2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SheetNumber := SheetNumber + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SheetName := 'BOM Summary ' + IntToStr(SheetNumber);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Sheets.Add();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XLApp.Workbooks&#91;1&#93;.Sheets&#91;1&#93;.Name := SheetName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sheet := XLApp.Workbooks&#91;1&#93;.Sheets&#91;1&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColumnRange := Sheet.Columns;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for y := 0 to fldcnt - 1 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; &nbsp; &nbsp; &nbsp; &nbsp; ColumnRange.Columns&#91;y+1&#93;.NumberFormat := '#,###,###,##0.0#_);&#91;Red&#93;(#,###,###,###.00)';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColumnRange.Columns&#91;y+1&#93;.AutoFit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sheet.Cells&#91;1, y+1&#93; := QRY.FieldDefs.Items&#91;y&#93;.Name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Application.ProcessMessages();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gauge.Position := gauge.Position + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QRY.Next();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PartNumberEdit.Text :=' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PartNumberEdit.SetFocus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; //end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for y := 0 to fldcnt - 1 do<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColumnRange.Columns&#91;y+1&#93;.AutoFit;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; end;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Beep();<br />
&nbsp; &nbsp; &nbsp; &nbsp; QRYC.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; QRY.Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; XLApp.Visible := True;<br />
&nbsp; &nbsp; &nbsp; &nbsp; SheetNumber := SheetNumber + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; gauge.Position := 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; gauge.Visible := False;<br />
<br />
&nbsp; &nbsp; &nbsp;  end;<br />
&nbsp;end;</pre>
///////////////////////////////////////////////////////<br />
Thank you in advance,<br />
Sonya</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>sonya795</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148688.html</guid>
		</item>
		<item>
			<title>Getting started with Pascal on Mac OS X</title>
			<link>http://www.daniweb.com/forums/thread148616.html</link>
			<pubDate>Thu, 02 Oct 2008 01:12:26 GMT</pubDate>
			<description>I need help getting going with Pascal on a Mac. (I have considerable amateur experience on Delphi on a PC.) 

Two possibilities:
1. I can hire someone with the knowledge to consult and get me going--Install compiler, setup IDE, relate to XCODE (whatever that is) and so on. I live in downtown...</description>
			<content:encoded><![CDATA[<div>I need help getting going with Pascal on a Mac. (I have considerable amateur experience on Delphi on a PC.) <br />
<br />
Two possibilities:<br />
1. I can hire someone with the knowledge to consult and get me going--Install compiler, setup IDE, relate to XCODE (whatever that is) and so on. I live in downtown Chicago or over-the-phone might work too.<br />
<br />
2. Alternatively can someone point me to specific instructions about what files are needed, how to set them up and how to open an ide and run a &quot;hello world&quot; program. I could take it from there.<br />
<br />
Thanks,<br />
<br />
Bob Kolb</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Bob Kolb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148616.html</guid>
		</item>
		<item>
			<title>Delphi sql delete</title>
			<link>http://www.daniweb.com/forums/thread148527.html</link>
			<pubDate>Wed, 01 Oct 2008 14:43:00 GMT</pubDate>
			<description><![CDATA[Hi All

I want to delete records from a table. I'm using the following query:

 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>Hi All<br />
<br />
I want to delete records from a table. I'm using the following query:<br />
<br />
<pre style="margin:20px; line-height:13px">adqdelete.active := false;<br />
adqdelete.sql.add('delete from stalls');<br />
adqdelete.sql.add('where stall_name =');<br />
adqdelete.sql.add(edtDeleteStalls.Text);<br />
adqdelete.active:=True;</pre>
<br />
This gives a syntax error. does anyone know what I'm doing wrong?<br />
<br />
Thanks for your time<br />
Tai</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>taineechan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148527.html</guid>
		</item>
		<item>
			<title>How to download files with delphi !!!</title>
			<link>http://www.daniweb.com/forums/thread148496.html</link>
			<pubDate>Wed, 01 Oct 2008 11:28:21 GMT</pubDate>
			<description>Can anyone help me to do this !!!
I want to download a file (for exaclty photo file) from a web page how i can do this through delphi?????</description>
			<content:encoded><![CDATA[<div>Can anyone help me to do this !!!<br />
I want to download a file (for exaclty photo file) from a web page how i can do this through delphi?????</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>vanias</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148496.html</guid>
		</item>
		<item>
			<title>Looking to hire a Delphi/C++ Programmer</title>
			<link>http://www.daniweb.com/forums/thread148408.html</link>
			<pubDate>Tue, 30 Sep 2008 21:40:17 GMT</pubDate>
			<description>I am looking to hire a Delphi Programmer for a Project supporting a Vista based Imaging System.  Part-time work is OK.  Does anyone have any suggestions as to where I might look? Thanks in advance.</description>
			<content:encoded><![CDATA[<div>I am looking to hire a Delphi Programmer for a Project supporting a Vista based Imaging System.  Part-time work is OK.  Does anyone have any suggestions as to where I might look? Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>FreddyJ</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148408.html</guid>
		</item>
		<item>
			<title>Neural Networks with Delphi</title>
			<link>http://www.daniweb.com/forums/thread148390.html</link>
			<pubDate>Tue, 30 Sep 2008 18:40:02 GMT</pubDate>
			<description><![CDATA[Interesting post about Neural Networks with the component "TFFNN"

http://delphimagic.blogspot.com/2008/09/redes-neuronales-con-delphi-neural-net.html

In Spanish Language]]></description>
			<content:encoded><![CDATA[<div>Interesting post about Neural Networks with the component &quot;TFFNN&quot;<br />
<br />
<a rel="nofollow" class="t" href="http://delphimagic.blogspot.com/2008/09/redes-neuronales-con-delphi-neural-net.html" target="_blank">http://delphimagic.blogspot.com/2008...eural-net.html</a><br />
<br />
In Spanish Language</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>josejp1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148390.html</guid>
		</item>
		<item>
			<title>Unbelievably simple question</title>
			<link>http://www.daniweb.com/forums/thread148372.html</link>
			<pubDate>Tue, 30 Sep 2008 15:42:05 GMT</pubDate>
			<description><![CDATA[I am coding a unit in Delphi 2007 and everything has been working fine. Suddenly, pressing the "return" key merely moves the cursor to the next line instead of throwing a new line I switch to another program (word processor) and that program works fine.  I have rebooted, but that doesn't solve the...]]></description>
			<content:encoded><![CDATA[<div>I am coding a unit in Delphi 2007 and everything has been working fine. Suddenly, pressing the &quot;return&quot; key merely moves the cursor to the next line instead of throwing a new line I switch to another program (word processor) and that program works fine.  I have rebooted, but that doesn't solve the problem. <br />
<br />
It seems I must have accidentally set something in the Delphi software to make this happen. Please help me out and tell me how to get my line feeds back!<br />
<br />
Thanks,<br />
<br />
Bob</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Bob Kolb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148372.html</guid>
		</item>
		<item>
			<title>level counter in a label... help pls</title>
			<link>http://www.daniweb.com/forums/thread148230.html</link>
			<pubDate>Mon, 29 Sep 2008 20:27:13 GMT</pubDate>
			<description><![CDATA[hey there, i'm new at delphi, at my first prog actually. Been doing c/c++ for a while. 
The prog is supposed to be simple game, and i need a level counter. I've strayed a bit from the tutorial i'm using and now when i run it the number in the label turns to a black rectangle  and nothing works...]]></description>
			<content:encoded><![CDATA[<div>hey there, i'm new at delphi, at my first prog actually. Been doing c/c++ for a while. <br />
The prog is supposed to be simple game, and i need a level counter. I've strayed a bit from the tutorial i'm using and now when i run it the number in the label turns to a black rectangle  and nothing works anymore, can only close with &quot;right click-&gt;close&quot;.<br />
can someone pls set me on the right path here?:-/ <br />
 here's the code<br />
<pre style="margin:20px; line-height:13px">unit game1;<br />
<br />
interface<br />
<br />
uses<br />
&nbsp; Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br />
&nbsp; Dialogs, ExtCtrls, StdCtrls, jpeg;<br />
<br />
type<br />
&nbsp; TForm1 = class(TForm)<br />
&nbsp; &nbsp; Timer1: TTimer;<br />
&nbsp; &nbsp; bot1: TShape;<br />
&nbsp; &nbsp; bot2: TShape;<br />
&nbsp; &nbsp; Button1: TButton;<br />
&nbsp; &nbsp; Panel1: TPanel;<br />
&nbsp; &nbsp; Button2: TButton;<br />
&nbsp; &nbsp; Leveltimer: TTimer;<br />
&nbsp; &nbsp; Label1: TLabel;<br />
&nbsp; &nbsp; procedure Timer1Timer(Sender: TObject);<br />
&nbsp; &nbsp; procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X,<br />
&nbsp; &nbsp; &nbsp; Y: Integer);<br />
&nbsp; &nbsp; procedure Button1Click(Sender: TObject);<br />
&nbsp; &nbsp; procedure Button2Click(Sender: TObject);<br />
&nbsp; &nbsp; procedure LeveltimerTimer(Sender: TObject);<br />
&nbsp; <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 />
<br />
implementation<br />
<br />
{$R *.dfm}<br />
<br />
procedure TForm1.Timer1Timer(Sender: TObject);<br />
var overlay:trect;<br />
begin<br />
&nbsp; if bot1.left&gt;bot2.left then bot1.Left:=bot1.Left-1;<br />
&nbsp; if bot1.left&lt;bot2.left then bot1.Left:=bot1.Left+1;<br />
&nbsp; if bot1.top&gt;bot2.top then bot1.top:=bot1.top-1;<br />
&nbsp; if bot1.top&lt;bot2.top then bot1.top:=bot1.top+1;<br />
<br />
&nbsp; //this part is collision detection<br />
&nbsp; if intersectrect(overlay,bot1.BoundsRect,bot2.BoundsRect) then<br />
&nbsp; &nbsp; begin<br />
&nbsp; &nbsp; &nbsp; timer1.Enabled:=false;<br />
&nbsp; &nbsp; &nbsp; leveltimer.Enabled:=false;<br />
&nbsp; &nbsp; &nbsp; showmessage ('you are dead');<br />
&nbsp; &nbsp; end;<br />
end;<br />
//procedure for moving your bot and reseting possition in case of death<br />
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,<br />
&nbsp; Y: Integer);<br />
begin<br />
&nbsp;if timer1.Enabled=true then<br />
&nbsp;begin<br />
&nbsp; bot2.Left:=x-bot2.Width div 2;<br />
&nbsp; bot2.Top:=y-bot2.Height div 2;<br />
&nbsp;end<br />
&nbsp;else<br />
&nbsp; begin<br />
&nbsp;  sleep(1000);<br />
&nbsp;  bot2.left:=0;<br />
&nbsp;  bot2.top:=0;<br />
&nbsp;  bot1.Left:=0;<br />
&nbsp;  bot1.Top:=100;<br />
&nbsp; end;<br />
end;<br />
<br />
procedure TForm1.Button1Click(Sender: TObject);<br />
begin<br />
&nbsp; timer1.Enabled:=True;<br />
end;<br />
<br />
procedure TForm1.Button2Click(Sender: TObject);<br />
begin<br />
&nbsp; timer1.Enabled:=false;<br />
end;<br />
<br />
procedure TForm1.LeveltimerTimer(Sender: TObject);<br />
&nbsp; var a:char;<br />
begin<br />
<br />
&nbsp; //level counter<br />
&nbsp; if timer1.enabled=true then leveltimer.Enabled:=true;<br />
&nbsp; label1.tag:=label1.tag+1;<br />
&nbsp; a:=chr(label1.tag);<br />
&nbsp; label1.caption:=a;<br />
end;<br />
<br />
end.</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>Ravenn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148230.html</guid>
		</item>
		<item>
			<title>MathML and Delphi</title>
			<link>http://www.daniweb.com/forums/thread148157.html</link>
			<pubDate>Mon, 29 Sep 2008 12:14:25 GMT</pubDate>
			<description>Hello,
I need to transform mathematical expressions from MathML (as a part of an
XML file) to plain text format (in the Pascal or C fashion) and the reverse
(from Pascal to MathML) form my application in Delphi.
Does anybody know any component or routine to do this?
Thanks in advance</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I need to transform mathematical expressions from MathML (as a part of an<br />
XML file) to plain text format (in the Pascal or C fashion) and the reverse<br />
(from Pascal to MathML) form my application in Delphi.<br />
Does anybody know any component or routine to do this?<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>pfemia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148157.html</guid>
		</item>
		<item>
			<title>MarhMK and Delphi</title>
			<link>http://www.daniweb.com/forums/thread148155.html</link>
			<pubDate>Mon, 29 Sep 2008 12:13:35 GMT</pubDate>
			<description>Hello,
I need to transform mathematical expressions from MathML (as a part of an
XML file) to plain text format (in the Pascal or C fashion) and the reverse
(from Pascal to MathML) form my application in Delphi.
Does anybody know any component or routine to do this?
Thanks in advance</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I need to transform mathematical expressions from MathML (as a part of an<br />
XML file) to plain text format (in the Pascal or C fashion) and the reverse<br />
(from Pascal to MathML) form my application in Delphi.<br />
Does anybody know any component or routine to do this?<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>pfemia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread148155.html</guid>
		</item>
		<item>
			<title>File of *Type*</title>
			<link>http://www.daniweb.com/forums/thread147668.html</link>
			<pubDate>Thu, 25 Sep 2008 14:57:33 GMT</pubDate>
			<description><![CDATA[The declaration of the type is:
 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div>...]]></description>
			<content:encoded><![CDATA[<div>The declaration of the type is:<br />
<pre style="margin:20px; line-height:13px">type<br />
&nbsp; TMediaLibrary = record<br />
&nbsp; &nbsp; Title:string[30];<br />
&nbsp; &nbsp; TrackNo:integer;<br />
&nbsp; &nbsp; Artist:string[30];<br />
&nbsp; &nbsp; Album:string[30];<br />
&nbsp; &nbsp; Year:string[4];<br />
&nbsp; &nbsp; Genre:string[30];<br />
&nbsp; &nbsp; Comment:String[30];<br />
&nbsp; &nbsp; Directory:string;<br />
&nbsp; end; <br />
<br />
var&nbsp; SongInfo: TMediaLibrary;</pre>
<br />
and the file implementation of it is here:<br />
<br />
<pre style="margin:20px; line-height:13px">procedure TForm1.Button1Click(Sender: TObject);<br />
var<br />
&nbsp; SongFile:string;<br />
&nbsp; MediaLibrary: file of TMediaLibrary; &lt;&lt;&lt;Error is here<br />
begin<br />
.<br />
.<br />
.<br />
.<br />
&nbsp; AssignFile(MediaLibrary, 'C:\Program Files\toMedia Player\data\libr.db');<br />
&nbsp; rewrite(MediaLibrary);<br />
&nbsp; Write(MediaLibrary, SongInfo);<br />
&nbsp; CloseFile(MediaLibrary);<br />
end;</pre>
<br />
My problem is that when i try to compile the code it gives the error &quot;Type TMediaLibrary needs finalization - not allowed in file type&quot;. This is my first post on any coding community site as most problems have already been solved already, but this has stumped me and google. <br />
<br />
Thanks alot for any help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum124.html">Pascal and Delphi</category>
			<dc:creator>espSquall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread147668.html</guid>
		</item>
	</channel>
</rss>
