<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Delphi Record Help' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Delphi Record Help' posted on the 'Delphi and Kylix' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 14:35:22 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 14:35:22 -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>Delphi Record Help</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/408883/408883/delphi-record-help/</link>
      <description>Hi, fairly new to delphi (and all) coding.  Hope someone can help.&lt;br /&gt;
I am setting up a record type for a question:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;type
  question = record
    questionNo: integer;
    questiontext: string;
    choice1: string;
    choice2: string;
    correctanswer: integer;
end;&lt;/pre&gt;&lt;br /&gt;
What I am trying to do is read a question in from a memo, the line in the memo reads &lt;br /&gt;
&lt;strong&gt;1,'Scotland won the World Cup in 1998','True','False',2&lt;/strong&gt;&lt;br /&gt;
How do I input this information into the data structure from a memo(or text file, thats what I'm reading into the memo in the first place?&lt;br /&gt;
Ideally I would have an unlimited number of questions in the memo, and I could say &lt;br /&gt;
&lt;pre class="sourcecode"&gt;q1:question;
q1(memo1.lines[0])&lt;/pre&gt;&lt;br /&gt;
and q1 would store all the data in the correct place, and I could then repeat this for q2, q3 etc and change text files.&lt;br /&gt;
&lt;br /&gt;
Is there an easy way to do this or do I need to rethink my plan?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Ewan&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/delphikylix/408883/408883/delphi-record-help/</guid>
      <pubDate>Thu, 05 Nov 2009 08:56:15 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
  </channel>
</rss>
