<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Pascal Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'Pascal' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Fri, 20 Nov 2009 20:10:30 -0700</pubDate>
    <lastBuildDate>Fri, 20 Nov 2009 20:10:30 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Re: I need to know how can I write it in pascal???</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409530/409648/re-i-need-to-know-how-can-i-write-it-in-pascal/#409648</link>
      <description>: 1) Insert information&lt;br /&gt;
: 2)search by student number&lt;br /&gt;
: 3)display all information&lt;br /&gt;
: 4)delete by student number&lt;br /&gt;
: 5)Exit&lt;br /&gt;
: please enter your choice&lt;br /&gt;
: ======================================…&lt;br /&gt;
: write a program that has the above menu &amp;amp; Contains(max) 100 students &lt;br /&gt;
: with the information(name/students number(code)/field/term)....store &lt;br /&gt;
: them &amp;amp; can do the above performance(in the above menu)&lt;br /&gt;
: note: without using 'record'&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
That looks like a homework assignment to me, so no code this time... start writing yourself and ask for help with code examples if you get stuck. Hint: use &lt;strong&gt;array&lt;/strong&gt;s if you cannot use &lt;strong&gt;record&lt;/strong&gt;s.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409530/409648/re-i-need-to-know-how-can-i-write-it-in-pascal/#409648</guid>
      <pubDate>Fri, 20 Nov 2009 08:49:30 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409647/re-get-progress-from-scanning/#409647</link>
      <description>: If I use findfirst or findnext, that will wasting time???&lt;br /&gt;
&lt;br /&gt;
No time wasting there (takes only a fraction of a second), beside that's the only way to find out the file names from a folder...unless you read the FAT directly and process the info but that's a bit beyond plain Pascal's capability, you'd have to rely on assembly there...&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409647/re-get-progress-from-scanning/#409647</guid>
      <pubDate>Fri, 20 Nov 2009 08:43:43 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409593/re-get-progress-from-scanning/#409593</link>
      <description>If I use findfirst or findnext, that will wasting time???&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409593/re-get-progress-from-scanning/#409593</guid>
      <pubDate>Thu, 19 Nov 2009 06:01:24 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Fake Passports for Sale</title>
      <link>http://www.programmersheaven.com/mb/pasprog/396585/409581/fake-passports-for-sale/#409581</link>
      <description>Fake Passports for Sale&lt;br /&gt;
&lt;br /&gt;
If you want to buy high quality fake forged fraudulent counterfeit duplicate false camouflage diplomatic passports and other identification documents of Australia, Austria, Belgium, Canada, Finland, France, Germany, Israel, Malaysia, Netherlands, New Zealand, South Africa, Switzerland, United Kingdom, United States and some other countries please visit this website:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.FakePassport.Ws"&gt;http://www.FakePassport.Ws&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
E-mail: FakePassports@Gmail.Com&lt;br /&gt;
&lt;br /&gt;
Diplomatic passports are also available on demand&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/396585/409581/fake-passports-for-sale/#409581</guid>
      <pubDate>Thu, 19 Nov 2009 02:53:48 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>I need to know how can I write it in pascal???</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409530/409530/i-need-to-know-how-can-i-write-it-in-pascal/</link>
      <description>1) Insert information&lt;br /&gt;
2)search by student number&lt;br /&gt;
3)display all information&lt;br /&gt;
4)delete by student number&lt;br /&gt;
5)Exit&lt;br /&gt;
please enter your choice&lt;br /&gt;
======================================…&lt;br /&gt;
write a program that has the above menu &amp;amp; Contains(max) 100 students with the information(name/students number(code)/field/term)....store them &amp;amp; can do the above performance(in the above menu)&lt;br /&gt;
note: without using 'record'&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409530/409530/i-need-to-know-how-can-i-write-it-in-pascal/</guid>
      <pubDate>Wed, 18 Nov 2009 11:52:35 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: simple asterisk password program?</title>
      <link>http://www.programmersheaven.com/mb/pasprog/171747/409338/re-simple-asterisk-password-program/#409338</link>
      <description>: How can I do something like this in Turbo Pascal 7? :| :D&lt;br /&gt;
&lt;br /&gt;
Just change the uses line to: &lt;strong&gt;uses crt;&lt;/strong&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/171747/409338/re-simple-asterisk-password-program/#409338</guid>
      <pubDate>Sun, 15 Nov 2009 21:52:22 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409337/re-get-progress-from-scanning/#409337</link>
      <description>: How can I get m ? Do I have to scan twice? :( &lt;br /&gt;
&lt;br /&gt;
No, you have to use the &lt;strong&gt;findfirst&lt;/strong&gt; and &lt;strong&gt;findnext&lt;/strong&gt; procedures from the &lt;strong&gt;Dos&lt;/strong&gt; unit to get all the filenames in a folder first. That gives you the &lt;strong&gt;m&lt;/strong&gt;. When you scan you'll have to open each file for scan, starting from 1 (&lt;strong&gt;n&lt;/strong&gt;).&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409337/re-get-progress-from-scanning/#409337</guid>
      <pubDate>Sun, 15 Nov 2009 21:50:58 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: simple asterisk password program?</title>
      <link>http://www.programmersheaven.com/mb/pasprog/171747/409324/re-simple-asterisk-password-program/#409324</link>
      <description>How can I do something like this in Turbo Pascal 7? :| :D</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/171747/409324/re-simple-asterisk-password-program/#409324</guid>
      <pubDate>Sun, 15 Nov 2009 10:47:16 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409322/re-get-progress-from-scanning/#409322</link>
      <description>How can I get m ? Do I have to scan twice? :(&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409322/re-get-progress-from-scanning/#409322</guid>
      <pubDate>Sun, 15 Nov 2009 09:34:48 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Need some Help! on Record please..</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408462/409271/re-need-some-help-on-record-please/#409271</link>
      <description>You could try:&lt;pre class="sourcecode"&gt;&lt;span style="color: Blue;"&gt;type transaction_record=record
                         field_a:customerrec;
                         field_b:stockrec;
                        end;

var transaction_record_file:file of transaction_record;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408462/409271/re-need-some-help-on-record-please/#409271</guid>
      <pubDate>Fri, 13 Nov 2009 20:57:08 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: To extract the time..</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409167/409269/re-to-extract-the-time/#409269</link>
      <description>: Hiya guys =]&lt;br /&gt;
: this time I would like to ask how to extract the time and the date &lt;br /&gt;
: into an array?&lt;br /&gt;
&lt;br /&gt;
Use the &lt;strong&gt;unpacktime&lt;/strong&gt; procedure from the &lt;strong&gt;Dos&lt;/strong&gt; unit, see TP's hep for more info.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409167/409269/re-to-extract-the-time/#409269</guid>
      <pubDate>Fri, 13 Nov 2009 20:23:34 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409268/re-get-progress-from-scanning/#409268</link>
      <description>Let be &lt;strong&gt;m&lt;/strong&gt; the total number of files in a folder, &lt;strong&gt;n&lt;/strong&gt; the current file you process (a nonzero number) then current percentage (&lt;strong&gt;cp&lt;/strong&gt;) would be: &lt;strong&gt;cp:=n*100/m&lt;/strong&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409268/re-get-progress-from-scanning/#409268</guid>
      <pubDate>Fri, 13 Nov 2009 20:20:36 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Using Algorithm Genome Shot to sort numbers</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408899/409267/re-using-algorithm-genome-shot-to-sort-numbers/#409267</link>
      <description>: How to create a program to sort numbers from 1 to 20 using principle &lt;br /&gt;
: of algorithm genome shot?&lt;br /&gt;
&lt;br /&gt;
Describe the "genome shot" sorting... I never heard of it &lt;img src="http://www.programmersheaven.com/images/Community/frown.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408899/409267/re-using-algorithm-genome-shot-to-sort-numbers/#409267</guid>
      <pubDate>Fri, 13 Nov 2009 20:15:55 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>To extract the time..</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409167/409167/to-extract-the-time/</link>
      <description>Hiya guys =]&lt;br /&gt;
this time I would like to ask how to extract the time and the date into an array?&lt;br /&gt;
thanks alot for you guys' help &amp;gt;&amp;lt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409167/409167/to-extract-the-time/</guid>
      <pubDate>Thu, 12 Nov 2009 07:33:45 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Get progress from scanning</title>
      <link>http://www.programmersheaven.com/mb/pasprog/409087/409087/get-progress-from-scanning/</link>
      <description>I am trying to make simple malware removal, but I dont know how to get the percentage of path that I want to scan. For example I scan c:\folder, I want to get the percentage to make progress bar while scanning.&lt;br /&gt;
&lt;br /&gt;
Thx a lot.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/409087/409087/get-progress-from-scanning/</guid>
      <pubDate>Wed, 11 Nov 2009 06:14:59 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Need some Help! on Record please..</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408462/408944/re-need-some-help-on-record-please/#408944</link>
      <description>Yes please, I'd really appreciate it. =&amp;gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408462/408944/re-need-some-help-on-record-please/#408944</guid>
      <pubDate>Fri, 06 Nov 2009 18:57:08 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Create Calander with PASCAL</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408922/408922/create-calander-with-pascal/</link>
      <description>Here's a simple code which will create a monthly calendar for u.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
program CALANDER(input,output);

uses crt;

var
space: integer;
i : integer;
month : integer;
fmonth: string;
MonthA : Array[0..11] of string;
DayA   : Array[0..6] of string;
MonthC : Array[0..11] of integer;
day : integer;
fday : string;
DayF : Array[0..6] of integer;
firstday : string;
firstdate : integer;
daymod : integer;
date : integer;
a : integer;
monthtotal: integer;

begin

{ARRAY list that used in program}
{START}
MonthA[0] := 'January';
MonthA[1] := 'February';
MonthA[2] := 'March';
MonthA[3] := 'April';
MonthA[4] := 'May';
MonthA[5] := 'June';
MonthA[6] := 'July';
MonthA[7] := 'Auguest';
MonthA[8] := 'September';
MonthA[9] := 'October';
MonthA[10] := 'November';
MonthA[11] := 'December';

DayA[0] := 'Sunday';
DayA[1] := 'Monday';
DayA[2] := 'Tuesday';
DayA[3] := 'Wednesday';
DayA[4] := 'Thursday';
DayA[5] := 'Friday';
DayA[6] := 'Saturday';

DayF[0] := 0;
DayF[1] := 5;
DayF[2] := 5;
DayF[3] := 5;
DayF[4] := 5;
DayF[5] := 5;
DayF[6] := 5;

MonthC[0] := 31;
MonthC[1] := 28;
MonthC[2] := 31;
MonthC[3] := 30;
MonthC[4] := 31;
MonthC[5] := 30;
MonthC[6] := 31;
MonthC[7] := 31;
MonthC[8] := 30;
MonthC[9] := 31;
MonthC[10] := 30;
MonthC[11] := 31;
{END}

clrscr;
writeln('Enter the current MONTH code from the following list');

{Loop for the Month codes display}
{START}
for i := 0 to 11 do
    begin
        writeln(i,' =&amp;gt; ',MonthA[i]);
    end;
{END}

writeln('');
writeln('Please enter the MONTH code between 0 to 11');
readln(month);            {Get current month from user}
writeln('');


{Error handeling for getting current month rom user}
{START}
if (month &amp;lt; 0)  OR (month &amp;gt;= 12)
   then
       begin
            repeat
                  writeln('Please enter the MONTH code between 0 to 11');
                  readln(month);
            until ((month &amp;gt;= 0) AND (month &amp;lt;= 11));
            fmonth := MonthA[month];
            writeln(fmonth);
       end
else
    begin
         if ((month &amp;gt;= 0) AND (month &amp;lt;= 11))
            then
                begin
                      fmonth := MonthA[month];
                      writeln(fmonth);
            end
          else
              writeln('Please Enter Valid Charactor');
    end;
{END}


monthtotal:=MonthC[month];



clrscr;
writeln('Please enter month''s First Day from codelist');


{Loop for the Day codes display}
{START}
for i := 0 to 6 do
    begin
        writeln(i,' =&amp;gt; ',DayA[i]);
    end;
{END}

writeln('');
writeln('Please enter month''s First Day from codelist');

readln(day);            {Get current month from user}
writeln('');

{Error handeling for getting current day from user}
{START}
if (day &amp;lt; 0)  OR (day &amp;gt;= 7)
   then
       begin
            repeat
                  writeln('Please enter month''s First Day from codelist');

                  readln(day);
            until ((day &amp;gt;= 0) AND (day &amp;lt;= 6));
            fday := DayA[day];
            writeln(fday);
       end
else
    begin
         if ((day &amp;gt;= 0) AND (day &amp;lt;= 6))
            then
                begin
                      fday := DayA[day];
                      writeln(fday);
            end
          else
              writeln('Please Enter Valid Charactor');
    end;

{END}


 firstdate:=1;






clrscr;


writeln('                  Calander 2009');
writeln('                     ',fmonth,'');
writeln('');
writeln('    Sun   Mon   Tue   Wed   Thu   Fri   Sat');
writeln('');
if(DayF[day]=0)
    then
        begin
             space:=0;
        end
else if(DayF[day]=1)
    then
        begin
             space:=4;
        end
else if(DayF[day]=2)
    then
        begin
             space:=9;
        end
else if(DayF[day]=3)
    then
        begin
             space:=14;
        end
else if(DayF[day]=4)
    then
        begin
             space:=19;
        end
else if(DayF[day]=5)
    then
        begin
             space:=24;
        end
else if(DayF[day]=6)
    then
        begin
             space:=29;
        end
else
    begin
         writeln('error');
    end;

write('':space);
for date:=1 to  monthtotal do
    begin

         write(date:6);

         day:=day+1;
         if(day&amp;gt;6)
            then
                begin
                     day:=0;
                     writeln('');
                end;
    end;



readln;
end.
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408922/408922/create-calander-with-pascal/</guid>
      <pubDate>Fri, 06 Nov 2009 05:47:08 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Using Algorithm Genome Shot to sort numbers</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408899/408899/using-algorithm-genome-shot-to-sort-numbers/</link>
      <description>How to create a program to sort numbers from 1 to 20 using principle of algorithm genome shot?&lt;br /&gt;
Note : numbers into array variable must random&lt;br /&gt;
&lt;br /&gt;
Anyone please help me...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408899/408899/using-algorithm-genome-shot-to-sort-numbers/</guid>
      <pubDate>Thu, 05 Nov 2009 21:16:53 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408828/408884/re-help/#408884</link>
      <description>: Thx for the help... but it seems like my pascal does not have a unit &lt;br /&gt;
: called timer...&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
That's why I posted the unit also (is right below the program) &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt; &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408828/408884/re-help/#408884</guid>
      <pubDate>Thu, 05 Nov 2009 09:13:22 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408828/408873/re-help/#408873</link>
      <description>Thx for the help... but it seems like my pascal does not have a unit called timer...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408828/408873/re-help/#408873</guid>
      <pubDate>Thu, 05 Nov 2009 05:49:26 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: simple asterisk password program?</title>
      <link>http://www.programmersheaven.com/mb/pasprog/171747/408853/re-simple-asterisk-password-program/#408853</link>
      <description>here's the completed code :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;program asterisk;
uses wincrt;

var
  Ch    : Char;
  Pass  : String;
  count : integer;
begin
  Pass := '';
  count := 0;

  repeat
    Ch := ReadKey;
    if (Ch = #8) then
    begin
         write(ch);
         if (count &amp;lt;= 0) then begin Pass := Pass; end else
         if (count &amp;gt; 0) then begin Pass := Pass + Ch; end;
         dec(count);
    end else
    if (Ch in [#32..#126]) then
    begin
         Write('*');
         Pass := Pass + Ch;
         inc(count);
    end;
  until (Ch = #13);

  WriteLn;
  WriteLn('You Entered: ' + Pass);
end.&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/171747/408853/re-simple-asterisk-password-program/#408853</guid>
      <pubDate>Wed, 04 Nov 2009 22:35:23 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Need some Help! on Record please..</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408462/408850/re-need-some-help-on-record-please/#408850</link>
      <description>Time permitting will go through your code and see what can I come up with...&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408462/408850/re-need-some-help-on-record-please/#408850</guid>
      <pubDate>Wed, 04 Nov 2009 21:19:08 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Record..</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408831/408849/re-record/#408849</link>
      <description>: Hiya.. sorry for toubling you guys again&lt;br /&gt;
: i would like to ask something about Record:&lt;br /&gt;
: what can i do to make the field of the record be variable?&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;: var file : string;
: 
: begin
:    readln(file);
:    student.file := 'HA';
: end.
: &lt;/pre&gt;: &lt;br /&gt;
: thanks you all you guys help &amp;gt;&amp;lt;"&lt;br /&gt;
&lt;br /&gt;
I'm not sure what mean here...but, all fields of a record are variables of some sort... unless is declared as a &lt;strong&gt;const&lt;/strong&gt;... &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt; Could you be more explicit ?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408831/408849/re-record/#408849</guid>
      <pubDate>Wed, 04 Nov 2009 21:12:50 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Skidmarks how to Game made with Delphi &amp; unDelphiX</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408704/408848/re-skidmarks-how-to-game-made-with-delphi--undelphix/#408848</link>
      <description>: Hi there. I want to make skidmarks appear on a road when my car goes &lt;br /&gt;
: left or right. I'm using unDelphix as graphics library. I have no &lt;br /&gt;
: idea how to do this and I've searched the web but can't find &lt;br /&gt;
: anything relating to unDelphiX. Your help with code or tutorials is &lt;br /&gt;
: appreciated.&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
I would create some sprites resembling different skid marks. With proper placement (function to car and road movement) and design could look realistic enough... Or you could play with the road texture ( the cell just beneath the car ) by dynamically altering it. Simply painting a bunch of random black pixels where the tires are located relative to the texture at each frame. This would look the best, but I'm not sure if is possible to do with unDelphiX....&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408704/408848/re-skidmarks-how-to-game-made-with-delphi--undelphix/#408848</guid>
      <pubDate>Wed, 04 Nov 2009 20:58:50 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Help!</title>
      <link>http://www.programmersheaven.com/mb/pasprog/408828/408847/re-help/#408847</link>
      <description>: This may seem like a stupid question but I want to allow the user to &lt;br /&gt;
: input something like s:char; s:=readkey; within a time limit. &lt;br /&gt;
: If the user pressed something withing... lets say 10 seconds then &lt;br /&gt;
: s:=readkey, but if pascal has been waiting for an input for more the &lt;br /&gt;
: 10 seconds then the program should stop asking for that variable. &lt;br /&gt;
: How can this be done?&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Here's one solution suitable for rough timing, the resolution being 1/18.2 secs, hooks on Int28:&lt;pre class="sourcecode"&gt;&lt;span style="color: Blue;"&gt;{Compiler TP/BP 7}

program timed_input;
uses timer,crt;

var s:char;
    trig:boolean;

begin
 setup_timer;
 writeln('Press Esc to quit. Setting timer to 10 sec',#13#10);
 repeat
  _timer_[1]:=182; { set timer to roughly 10 secs }
  trig:=false;
  writeln(#13#10,'Awaiting input...');
  repeat
   if keypressed then begin
    s:=readkey;
    _timer_[1]:=0;
    trig:=true;
   end;
  until (_timer_[1]=0);
  if trig then writeln(' ',s,' was pressed. Setting timer to 10 sec')
          else writeln('Time''s up ! Resetting timer to 10 sec');
 until s=#27;
 shutdown_timer;
end.&lt;/span&gt;&lt;/pre&gt;&lt;pre class="sourcecode"&gt;&lt;span style="color: Blue;"&gt;{Countdown timer functions}
unit timer;

interface
uses dos;
var _timer_:array[1..9] of longint; {1..8 user, 9 counts  how many times the }
                                    {interrupt was called                    }
    old_28int:procedure;

procedure setup_timer;
procedure shutdown_timer;
procedure __timer__;interrupt;



implementation
{$f+}
procedure __timer__;            {This interrupt is called 18.2 times/second}
 var i:byte;                    {Not so precise, but simple :)             }
 begin
  for i:=1 to 8 do
   if _timer_[i]&amp;gt;0 then dec(_timer_[i]);
  inc(_timer_[9]);
  inline($9c); {pushf &amp;lt;-- push flags}
  old_28int; 
 end;
{$f-}

procedure setup_timer;
 begin
  _timer_[9]:=0;
  getintvec($1c,@old_28int);
  setintvec($1c,addr(__timer__));
 end;

procedure shutdown_timer;
 begin
  setintvec($1c,addr(old_28int));
 end;

begin
 _timer_[1]:=0; { 18.2 &amp;lt;-&amp;gt; 1 Sec}
 _timer_[2]:=0;
 _timer_[3]:=0;
 _timer_[4]:=0;
 _timer_[5]:=1092;     {  1 min } { Preset values }
 _timer_[6]:=3276;     {  3 min }
 _timer_[7]:=5460;     {  5 min }
 _timer_[8]:=10920;    { 10 min }
 _timer_[9]:=0;
end.
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/408828/408847/re-help/#408847</guid>
      <pubDate>Wed, 04 Nov 2009 20:29:06 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>